From ed7b4ff9e38c81eee8416dac83f340adf7f14d2e Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Thu, 1 Feb 2018 17:23:58 +0100 Subject: [PATCH] Use isolated-script-test-perf-output on low_bandwidth_audio_test. Instead of chartjson-result-file, since that's the flag passed by the recipe. TBR=phoglund@webrtc.org Bug: chromium:807737 Change-Id: I3a679ab7e5c0a446e675d0f4647344cc4194b357 Reviewed-on: https://webrtc-review.googlesource.com/46541 Commit-Queue: Edward Lemur Reviewed-by: Oleh Prypin Cr-Commit-Position: refs/heads/master@{#21858} --- audio/test/low_bandwidth_audio_test.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/audio/test/low_bandwidth_audio_test.py b/audio/test/low_bandwidth_audio_test.py index aa2bbf3fdd..b663985bf0 100755 --- a/audio/test/low_bandwidth_audio_test.py +++ b/audio/test/low_bandwidth_audio_test.py @@ -55,14 +55,12 @@ 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('--chartjson-result-file', + parser.add_argument('--isolated-script-test-perf-output', help='Where to store perf results in chartjson format.', default=None) # Ignore Chromium-specific flags parser.add_argument('--isolated-script-test-output', type=str, default=None) - parser.add_argument('--isolated-script-test-perf-output', - type=str, default=None) parser.add_argument('--test-launcher-summary-output', type=str, default=None) args = parser.parse_args() @@ -269,8 +267,8 @@ def main(): finally: test_process.terminate() - if args.chartjson_result_file: - with open(args.chartjson_result_file, 'w') as f: + if args.isolated_script_test_perf_output: + with open(args.isolated_script_test_perf_output, 'w') as f: json.dump({"format_version": "1.0", "charts": charts}, f) return test_process.wait()