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

Unified Diff: build/android/test_runner.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 | « build/android/pylib/local/device/local_device_test_run.py ('k') | testing/buildbot/chromium.swarm.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/test_runner.py
diff --git a/build/android/test_runner.py b/build/android/test_runner.py
index ee6f87a86a0a382a7be1b30054c5a1617c1cb61e..b3c1b97180c03ffb1e5ad5f1d16e0347de5f09a3 100755
--- a/build/android/test_runner.py
+++ b/build/android/test_runner.py
@@ -63,6 +63,14 @@ def AddTestLauncherArgs(parser):
dest='json_results_file', type=os.path.realpath,
help='If set, will dump results in JSON form '
'to specified file.')
+ parser.add_argument(
+ '--test-launcher-shard-index',
+ type=int, default=os.environ.get('GTEST_SHARD_INDEX', 0),
+ help='Index of the external shard to run.')
+ parser.add_argument(
+ '--test-launcher-total-shards',
+ type=int, default=os.environ.get('GTEST_TOTAL_SHARDS', 1),
+ help='Total number of external shards.')
return parser
« no previous file with comments | « build/android/pylib/local/device/local_device_test_run.py ('k') | testing/buildbot/chromium.swarm.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698