summaryrefslogtreecommitdiffstats
path: root/build/android
diff options
context:
space:
mode:
authormikecase <mikecase@chromium.org>2015-02-10 15:40:30 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-10 23:41:05 +0000
commit9b347ac807205d9c30e46b51c679ba093732bf5b (patch)
treedd7fd0d45e80134a073844dba0a871f6068a2ed4 /build/android
parent409bf9d6104f83c80cd85bd261784b39cab8e93e (diff)
downloadchromium_src-9b347ac807205d9c30e46b51c679ba093732bf5b.zip
chromium_src-9b347ac807205d9c30e46b51c679ba093732bf5b.tar.gz
chromium_src-9b347ac807205d9c30e46b51c679ba093732bf5b.tar.bz2
Fixes DownloadTestResults not actually making results directory if needed.
BUG=452068 Review URL: https://codereview.chromium.org/913873003 Cr-Commit-Position: refs/heads/master@{#315676}
Diffstat (limited to 'build/android')
-rw-r--r--build/android/pylib/remote/device/remote_device_test_run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/android/pylib/remote/device/remote_device_test_run.py b/build/android/pylib/remote/device/remote_device_test_run.py
index 6388bdc..43a7399 100644
--- a/build/android/pylib/remote/device/remote_device_test_run.py
+++ b/build/android/pylib/remote/device/remote_device_test_run.py
@@ -170,8 +170,8 @@ class RemoteDeviceTestRun(test_run.TestRun):
"""
if results_path:
logging.info('Downloading results to %s.' % results_path)
- if not os.path.exists(os.path.basename(results_path)):
- os.makedirs(os.path.basename(results_path))
+ if not os.path.exists(os.path.dirname(results_path)):
+ os.makedirs(os.path.dirname(results_path))
with appurify_sanitized.SanitizeLogging(self._env.verbose_count,
logging.WARNING):
appurify_sanitized.utils.wget(self._results['results']['url'],