Add num-retries flag to Android perf tests.
Add a flag to Android perf tests, so we can specify the number of retries. Bug: chromium:755660 Change-Id: Ic498373421b7e0fdf779a4659a0c79d47a59fbde Reviewed-on: https://webrtc-review.googlesource.com/61103 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Commit-Queue: Edward Lemur <ehmaldonado@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22390}
This commit is contained in:
committed by
Commit Bot
parent
15fb915917
commit
5b9c6840b1
@ -55,6 +55,8 @@ def _ParseArgs():
|
||||
parser.add_argument('--android', action='store_true',
|
||||
help='Perform the test on a connected Android device instead.')
|
||||
parser.add_argument('--adb-path', help='Path to adb binary.', default='adb')
|
||||
parser.add_argument('--num-retries', default=0,
|
||||
help='Number of times to retry the test on Android.')
|
||||
parser.add_argument('--isolated-script-test-perf-output',
|
||||
help='Where to store perf results in chartjson format.', default=None)
|
||||
|
||||
@ -221,7 +223,8 @@ def main():
|
||||
out_dir = os.path.join(args.build_dir, '..')
|
||||
if args.android:
|
||||
test_command = [os.path.join(args.build_dir, 'bin',
|
||||
'run_low_bandwidth_audio_test'), '-v']
|
||||
'run_low_bandwidth_audio_test'),
|
||||
'-v', '--num-retries', args.num_retries]
|
||||
else:
|
||||
test_command = [os.path.join(args.build_dir, 'low_bandwidth_audio_test')]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user