Commit 4a911f4a authored by Wez's avatar Wez Committed by Commit Bot

[fuchsia] Support TestLauncher sharding parameters.

Pass-through the shard-index and total-shards command-line parameters,
if specified.  These are used by Chromium infrastructure to request that
the TestLauncher only run a subset of the suite's tests in each Swarming
shard.

Bug: 1064103
Change-Id: I7cbf358177eae85a050fd071b205cd895a1793a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2122056
Auto-Submit: Wez <wez@chromium.org>
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: default avatarKevin Marshall <kmarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#753716}
parent f59db72b
......@@ -37,6 +37,14 @@ def main():
parser.add_argument('--test-launcher-retry-limit',
help='Number of times that test suite will retry failing '
'tests. This is multiplicative with --gtest_repeat.')
parser.add_argument(
'--test-launcher-shard-index',
type=int,
help='Index of this instance amongst swarming shards.')
parser.add_argument(
'--test-launcher-total-shards',
type=int,
help='Total number of swarming shards of this suite.')
parser.add_argument('--gtest_break_on_failure', action='store_true',
default=False,
help='Should GTest break on failure; useful with '
......@@ -112,6 +120,12 @@ def main():
if args.test_launcher_retry_limit:
child_args.append(
'--test-launcher-retry-limit=' + args.test_launcher_retry_limit)
if args.test_launcher_shard_index:
child_args.append(
'--test-launcher-shard-index=%d' % args.test_launcher_shard_index)
if args.test_launcher_total_shards:
child_args.append(
'--test-launcher-total-shards=%d' % args.test_launcher_total_shards)
if args.gtest_break_on_failure:
child_args.append('--gtest_break_on_failure')
if args.test_launcher_summary_output:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment