diff --git a/llvm/utils/lit/lit/reports.py b/llvm/utils/lit/lit/reports.py index 8312dcddc769a..1b43ab9357b37 100755 --- a/llvm/utils/lit/lit/reports.py +++ b/llvm/utils/lit/lit/reports.py @@ -286,7 +286,7 @@ def _write_results_to_file(self, tests, elapsed, file): json_data = {"traceEvents": events} - json.dump(json_data, time_trace_file, indent=2, sort_keys=True) + json.dump(json_data, file, indent=2, sort_keys=True) def _get_test_event(self, test, first_start_time): test_name = test.getFullName()