Fix python3 errors in low_bandwidth_audio_test.py.
This is causing errors on the ci: https://ci.chromium.org/p/webrtc/builders/perf/Perf%20Android32%20(M%20Nexus5)/3379 No-Presubmit: True Bug: webrtc:13607 Change-Id: Ice54db8b1405623e5d873cfd2795fbf5541ef727 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249789 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Reviewed-by: Christoffer Jansson <jansson@google.com> Commit-Queue: Jeremy Leconte <jleconte@google.com> Cr-Commit-Position: refs/heads/main@{#35830}
This commit is contained in:
parent
a37384899b
commit
1d4e982b07
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env vpython3
|
||||
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
||||
#
|
||||
# Use of this source code is governed by a BSD-style license
|
||||
@ -331,13 +331,13 @@ def main():
|
||||
|
||||
analyzer_results = analyzer.func(analyzer.executable, reference_file,
|
||||
degraded_file)
|
||||
for metric, (value, units) in analyzer_results.items():
|
||||
for metric, (value, units) in list(analyzer_results.items()):
|
||||
hist = histograms.CreateHistogram(metric, units, [value])
|
||||
user_story = generic_set.GenericSet([test_name])
|
||||
hist.diagnostics[reserved_infos.STORIES.name] = user_story
|
||||
|
||||
# Output human readable results.
|
||||
print 'RESULT %s: %s= %s %s' % (metric, test_name, value, units)
|
||||
print('RESULT %s: %s= %s %s' % (metric, test_name, value, units))
|
||||
|
||||
if args.remove:
|
||||
os.remove(reference_file)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user