| Index: build/android/pylib/remote/device/remote_device_test_run.py
|
| 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 91701b0879cdc660abec24e609e0ef7fce665a9b..43a739949dcb327b9c69c765f4730dbd4b4792cc 100644
|
| --- a/build/android/pylib/remote/device/remote_device_test_run.py
|
| +++ b/build/android/pylib/remote/device/remote_device_test_run.py
|
| @@ -170,12 +170,12 @@ 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))
|
| - with appurify_sanitized.SanitizeLogging(self._env.verbose_count,
|
| - logging.WARNING):
|
| - appurify_sanitized.utils.wget(self._results['results']['url'],
|
| - 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'],
|
| + results_path)
|
|
|
| def _GetTestStatus(self, test_run_id):
|
| """Checks the state of the test, and sets self._results
|
|
|