[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/+/1583719 Reviewed-by: Sergiy Belozorov <sergiyb@chromium.org> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/master@{#61030}
This commit is contained in:
parent
da41977d09
commit
078d65d6c4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user