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

Unified Diff: build/android/pylib/gtest/gtest_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
« no previous file with comments | « no previous file | build/android/pylib/instrumentation/instrumentation_test_instance.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/gtest_test_instance.py
diff --git a/build/android/pylib/gtest/gtest_test_instance.py b/build/android/pylib/gtest/gtest_test_instance.py
index 678f68b17ea9b5c48d94455d8aba16293a762ce4..32e7b7d60e9aeaa3bb8bebe1a644d5b422ae7894 100644
--- a/build/android/pylib/gtest/gtest_test_instance.py
+++ b/build/android/pylib/gtest/gtest_test_instance.py
@@ -262,11 +262,13 @@ class GtestTestInstance(test_instance.TestInstance):
if len(args.suite_name) > 1:
raise ValueError('Platform mode currently supports only 1 gtest suite')
self._exe_dist_dir = None
+ self._external_shard_index = args.test_launcher_shard_index
self._extract_test_list_from_filter = args.extract_test_list_from_filter
+ self._filter_tests_lock = threading.Lock()
self._shard_timeout = args.shard_timeout
self._store_tombstones = args.store_tombstones
+ self._total_external_shards = args.test_launcher_total_shards
self._suite = args.suite_name[0]
- self._filter_tests_lock = threading.Lock()
# GYP:
if args.executable_dist_dir:
@@ -366,6 +368,14 @@ class GtestTestInstance(test_instance.TestInstance):
return self._exe_dist_dir
@property
+ def external_shard_index(self):
+ return self._external_shard_index
+
+ @property
+ def extract_test_list_from_filter(self):
+ return self._extract_test_list_from_filter
+
+ @property
def extras(self):
return self._extras
@@ -410,8 +420,8 @@ class GtestTestInstance(test_instance.TestInstance):
return self._test_arguments
@property
- def extract_test_list_from_filter(self):
- return self._extract_test_list_from_filter
+ def total_external_shards(self):
+ return self._total_external_shards
#override
def TestType(self):
« no previous file with comments | « no previous file | build/android/pylib/instrumentation/instrumentation_test_instance.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698