diff --git a/Tools/scripts/size_compare_branches.py b/Tools/scripts/size_compare_branches.py index a7321448c1da1..5e6e29084f18d 100755 --- a/Tools/scripts/size_compare_branches.py +++ b/Tools/scripts/size_compare_branches.py @@ -483,8 +483,9 @@ def run_build_tasks_in_parallel(self, tasks): for task in tasks: task_results.append(self.gather_results_for_task(task)) # progress CSV: - with open("/tmp/some.csv", "w") as f: - f.write(self.csv_for_results(self.compare_task_results(task_results, no_elf_diff=True))) + csv_for_results = self.csv_for_results(self.compare_task_results(task_results, no_elf_diff=True)) + path = pathlib.Path("/tmp/some.csv") + path.write_text(csv_for_results) time.sleep(1) self.progress("All threads returned")