Fix file open mode issue for the uploader.

This is a forward fix for https://webrtc-review.googlesource.com/c/src/+/255320.
The error is the following:
https://logs.chromium.org/logs/webrtc-internal/buildbucket/cr-buildbucket/8819696929332742321/+/u/webrtc_perf_tests_Dashboard_upload/stdout

Bug: webrtc:13806
Change-Id: I1ccba1be69edf0b1023c1d197d2033bdc718f64b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/255420
Owners-Override: Jeremy Leconte <jleconte@google.com>
Reviewed-by: Jeremy Leconte <jleconte@google.com>
Commit-Queue: Jeremy Leconte <jleconte@google.com>
Cr-Commit-Position: refs/heads/main@{#36196}
This commit is contained in:
Jeremy Leconte
2022-03-14 20:06:11 +01:00
committed by WebRTC LUCI CQ
parent fa2c945f73
commit fa577c5eb6

View File

@ -253,7 +253,7 @@ def _AddBuildInfo(histograms, options):
def _DumpOutput(histograms, output_file):
with open(output_file, 'wb') as f:
with open(output_file, 'w') as f:
json.dump(_ApplyHacks(histograms.AsDicts()), f, indent=4)