Commit 451a7802 authored by mikecase's avatar mikecase Committed by Commit bot

Fix to test runner not downloading results if results dir already exists.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#315181}
parent 148fc2fe
...@@ -172,10 +172,10 @@ class RemoteDeviceTestRun(test_run.TestRun): ...@@ -172,10 +172,10 @@ class RemoteDeviceTestRun(test_run.TestRun):
logging.info('Downloading results to %s.' % results_path) logging.info('Downloading results to %s.' % results_path)
if not os.path.exists(os.path.basename(results_path)): if not os.path.exists(os.path.basename(results_path)):
os.makedirs(os.path.basename(results_path)) os.makedirs(os.path.basename(results_path))
with appurify_sanitized.SanitizeLogging(self._env.verbose_count, with appurify_sanitized.SanitizeLogging(self._env.verbose_count,
logging.WARNING): logging.WARNING):
appurify_sanitized.utils.wget(self._results['results']['url'], appurify_sanitized.utils.wget(self._results['results']['url'],
results_path) results_path)
def _GetTestStatus(self, test_run_id): def _GetTestStatus(self, test_run_id):
"""Checks the state of the test, and sets self._results """Checks the state of the test, and sets self._results
......
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