Index: build/android/pylib/host_driven/test_runner.py |
diff --git a/build/android/pylib/host_driven/test_runner.py b/build/android/pylib/host_driven/test_runner.py |
index cf34bc84bac3223d00f427d1221ebcee85ff9191..865be20bfd2b565c84054ec240b8efcffdb6a06d 100644 |
--- a/build/android/pylib/host_driven/test_runner.py |
+++ b/build/android/pylib/host_driven/test_runner.py |
@@ -48,16 +48,17 @@ |
""" |
#override |
- def __init__(self, device, shard_index, tool): |
+ def __init__(self, device, shard_index, tool, cleanup_test_files): |
"""Creates a new HostDrivenTestRunner. |
Args: |
device: Attached android device. |
shard_index: Shard index. |
tool: Name of the Valgrind tool. |
+ cleanup_test_files: Whether or not to cleanup test files on device. |
""" |
- super(HostDrivenTestRunner, self).__init__(device, tool) |
+ super(HostDrivenTestRunner, self).__init__(device, tool, cleanup_test_files) |
# The shard index affords the ability to create unique port numbers (e.g. |
# DEFAULT_PORT + shard_index) if the test so wishes. |
@@ -81,7 +82,7 @@ |
exception_raised = False |
try: |
- test.SetUp(str(self.device), self.shard_index) |
+ test.SetUp(str(self.device), self.shard_index, self._cleanup_test_files) |
except Exception: |
logging.exception( |
'Caught exception while trying to run SetUp() for test: ' + |