Index: build/android/pylib/linker/test_runner.py |
diff --git a/build/android/pylib/linker/test_runner.py b/build/android/pylib/linker/test_runner.py |
index b6803e45d9dd4a9b7ef2a10ee733437e03e257fa..3680f838e4cbc32f02b577d763dfb624c4de708e 100644 |
--- a/build/android/pylib/linker/test_runner.py |
+++ b/build/android/pylib/linker/test_runner.py |
@@ -49,14 +49,16 @@ |
""" |
#override |
- def __init__(self, device, tool): |
+ def __init__(self, device, tool, cleanup_test_files): |
"""Creates a new LinkerTestRunner. |
Args: |
device: Attached android device. |
tool: Name of the Valgrind tool. |
+ cleanup_test_files: Whether or not to cleanup test files on device. |
""" |
- super(LinkerTestRunner, self).__init__(device, tool) |
+ |
+ super(LinkerTestRunner, self).__init__(device, tool, cleanup_test_files) |
#override |
def InstallTestPackage(self): |
@@ -66,7 +68,8 @@ |
if not os.path.exists(apk_path): |
raise Exception('%s not found, please build it' % apk_path) |
- self.device.Install(apk_path) |
+ package_name = apk_helper.GetPackageName(apk_path) |
+ self.device.old_interface.ManagedInstall(apk_path, package_name) |
#override |
def RunTest(self, test): |