Commit 078d65d6 authored by Michael Achenbach's avatar Michael Achenbach Committed by Commit Bot

[test] Allow overriding run count in run_perf

This will allow running the integration tests with minimal runs.

NOTRY=true

Bug: chromium:775123
Change-Id: I3f5b975609c6af6f29fc5cf657d9aa5c2d0a7db6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1583719Reviewed-by: 's avatarSergiy Belozorov <sergiyb@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61030}
parent da41977d
......@@ -930,6 +930,9 @@ def Main(argv):
parser.add_argument('--dump-logcats-to',
help='Writes logcat output from each test into specified '
'directory. Only supported for android targets.')
parser.add_argument("--run-count", type=int, default=0,
help="Override the run count specified by the test "
"suite. The default 0 uses the suite's config.")
parser.add_argument('suite', nargs='+', help='Path to the suite config file.')
try:
......@@ -1035,7 +1038,7 @@ def Main(argv):
def Runner():
"""Output generator that reruns several times."""
for i in range(0, max(1, runnable.run_count)):
for i in range(0, max(1, args.run_count or runnable.run_count)):
attempts_left = runnable.retry_count + 1
while attempts_left:
output, output_secondary = platform.Run(runnable, i)
......
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