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

Unified Diff: build/android/pylib/instrumentation/instrumentation_test_instance.py

Issue 2743873003: [Android] Add support for external sharding to the test runner. (Closed)
Patch Set: borked rebase Created 3 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
Index: build/android/pylib/instrumentation/instrumentation_test_instance.py
diff --git a/build/android/pylib/instrumentation/instrumentation_test_instance.py b/build/android/pylib/instrumentation/instrumentation_test_instance.py
index 93e3a63380d72855f60dfc0246adb3c5c774e230..1824537b00bbe2efedc4f1e2bc8b12dabfa57b21 100644
--- a/build/android/pylib/instrumentation/instrumentation_test_instance.py
+++ b/build/android/pylib/instrumentation/instrumentation_test_instance.py
@@ -504,6 +504,9 @@ class InstrumentationTestInstance(test_instance.TestInstance):
self._edit_shared_prefs = []
self._initializeEditPrefsAttributes(args)
+ self._external_shard_index = args.test_launcher_shard_index
+ self._total_external_shards = args.test_launcher_total_shards
+
def _initializeApkAttributes(self, args, error_func):
if args.apk_under_test:
apk_under_test_path = args.apk_under_test
@@ -734,6 +737,10 @@ class InstrumentationTestInstance(test_instance.TestInstance):
return self._edit_shared_prefs
@property
+ def external_shard_index(self):
+ return self._external_shard_index
+
+ @property
def flags(self):
return self._flags
@@ -789,6 +796,10 @@ class InstrumentationTestInstance(test_instance.TestInstance):
def timeout_scale(self):
return self._timeout_scale
+ @property
+ def total_external_shards(self):
+ return self._total_external_shards
+
#override
def TestType(self):
return 'instrumentation'
« no previous file with comments | « build/android/pylib/gtest/gtest_test_instance.py ('k') | build/android/pylib/local/device/local_device_gtest_run.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698