Commit dd0a9ec9 by Jamie Madill Committed by Commit Bot

Test Runner: Allow empty sharding parameters.

The prior check was incorrectly validating a shard index of zero and a shard count of one as inconsistent. Bug: angleproject:3162 Change-Id: I63184c16e82f08080b275672a43e6dacf291560d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2419045Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Commit-Queue: Jonah Ryan-Davis <jonahr@google.com>
parent 7676ec12
...@@ -805,7 +805,7 @@ TestSuite::TestSuite(int *argc, char **argv) ...@@ -805,7 +805,7 @@ TestSuite::TestSuite(int *argc, char **argv)
++argIndex; ++argIndex;
} }
if ((mShardIndex >= 0) != (mShardCount > 1)) if ((mShardIndex > 0) != (mShardCount > 1))
{ {
printf("Shard index and shard count must be specified together.\n"); printf("Shard index and shard count must be specified together.\n");
exit(1); exit(1);
......
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