Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2117)

Unified Diff: build/android/pylib/local/device/local_device_instrumentation_test_run.py

Issue 1839083003: [Android] Switch instrumentation tests to platform mode. (RELAND 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix # instrumentation test filters Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/android/pylib/instrumentation/instrumentation_test_instance.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/local/device/local_device_instrumentation_test_run.py
diff --git a/build/android/pylib/local/device/local_device_instrumentation_test_run.py b/build/android/pylib/local/device/local_device_instrumentation_test_run.py
index d1adaf91d99ea3b7463ccee32a6521128864b5a8..7ecc52b07679cd78709407b8fa4ffeb039c71661 100644
--- a/build/android/pylib/local/device/local_device_instrumentation_test_run.py
+++ b/build/android/pylib/local/device/local_device_instrumentation_test_run.py
@@ -54,7 +54,7 @@ class LocalDeviceInstrumentationTestRun(
self._flag_changers = {}
def TestPackage(self):
- return None
+ return self._test_instance.suite
def SetUp(self):
def substitute_external_storage(d, external_storage):
@@ -69,15 +69,16 @@ class LocalDeviceInstrumentationTestRun(
self._env.BlacklistDevice)
def individual_device_set_up(dev, host_device_tuples):
def install_apk():
- if self._test_instance.apk_under_test_incremental_install_script:
- local_device_test_run.IncrementalInstall(
- dev,
- self._test_instance.apk_under_test,
- self._test_instance.apk_under_test_incremental_install_script)
- else:
- permissions = self._test_instance.apk_under_test.GetPermissions()
- dev.Install(self._test_instance.apk_under_test,
- permissions=permissions)
+ if self._test_instance.apk_under_test:
+ if self._test_instance.apk_under_test_incremental_install_script:
+ local_device_test_run.IncrementalInstall(
+ dev,
+ self._test_instance.apk_under_test,
+ self._test_instance.apk_under_test_incremental_install_script)
+ else:
+ permissions = self._test_instance.apk_under_test.GetPermissions()
+ dev.Install(self._test_instance.apk_under_test,
+ permissions=permissions)
if self._test_instance.test_apk_incremental_install_script:
local_device_test_run.IncrementalInstall(
« no previous file with comments | « build/android/pylib/instrumentation/instrumentation_test_instance.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698