Commit 0614c2f0 authored by kkimlabs@chromium.org's avatar kkimlabs@chromium.org

[Android] Fix adb realpath command failure.

In android_commands.py's GetFilesChanged function,
realpath command fails when the path does not exist.
Create the path before we call GetFilesChanged.

BUG=374859

Review URL: https://codereview.chromium.org/293803003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271817 0039d316-1c4b-4281-b951-d872f2087c98
parent f9ea544b
...@@ -1086,6 +1086,9 @@ class AndroidCommands(object): ...@@ -1086,6 +1086,9 @@ class AndroidCommands(object):
self._pushed_files.append(device_path) self._pushed_files.append(device_path)
self._potential_push_size += size self._potential_push_size += size
if os.path.isdir(host_path):
self.RunShellCommand('mkdir -p "%s"' % device_path)
changed_files = self.GetFilesChanged(host_path, device_path) changed_files = self.GetFilesChanged(host_path, device_path)
logging.info('Found %d files that need to be pushed to %s', logging.info('Found %d files that need to be pushed to %s',
len(changed_files), device_path) len(changed_files), device_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment