summaryrefslogtreecommitdiffstats
path: root/build/android
diff options
context:
space:
mode:
authorfrankf@chromium.org <frankf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 23:23:16 +0000
committerfrankf@chromium.org <frankf@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-12 23:23:16 +0000
commit1170f71934947c9a8291e79d9b79d45759dc507f (patch)
tree46f015f4315e26ecf2721c9fbf3a0b5e0ccfe795 /build/android
parent4e6f82d0d3fdefd3fb890e7a21f6190656710834 (diff)
downloadchromium_src-1170f71934947c9a8291e79d9b79d45759dc507f.zip
chromium_src-1170f71934947c9a8291e79d9b79d45759dc507f.tar.gz
chromium_src-1170f71934947c9a8291e79d9b79d45759dc507f.tar.bz2
Should recursively make screenshot out dir.
This is only used for testing on Android. BUG= Review URL: https://codereview.chromium.org/11359166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167259 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/android')
-rw-r--r--build/android/pylib/android_commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py
index 7972909..65aab3c 100644
--- a/build/android/pylib/android_commands.py
+++ b/build/android/pylib/android_commands.py
@@ -1074,7 +1074,7 @@ class AndroidCommands(object):
"""
host_dir = os.path.dirname(host_file)
if not os.path.exists(host_dir):
- os.mkdir(host_dir)
+ os.makedirs(host_dir)
device_file = '%s/screenshot.png' % self.GetExternalStorage()
self.RunShellCommand('/system/bin/screencap -p %s' % device_file)
assert self._adb.Pull(device_file, host_file)