From 61b854bae8115ba5a1589a25b1552b7b01ad8eed Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Fri, 1 Nov 2024 11:58:30 -0400 Subject: [PATCH 1/2] fix: rewriting of test result reports --- tasks/test_results_processor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/test_results_processor.py b/tasks/test_results_processor.py index a0cc1e33d..0e0558317 100644 --- a/tasks/test_results_processor.py +++ b/tasks/test_results_processor.py @@ -495,7 +495,7 @@ def process_individual_arg( readable_report = self.rewrite_readable(network, report_contents) - archive_service.write_file(upload.storage_path, readable_report.getvalue()) + archive_service.write_file(upload.storage_path, readable_report.getvalue()) return TestResultsProcessingResult( network_files=network, parsing_results=parsing_results From 2ed71317fa8456da6c6b61e91f9ecd73da077ecd Mon Sep 17 00:00:00 2001 From: joseph-sentry Date: Fri, 1 Nov 2024 12:48:38 -0400 Subject: [PATCH 2/2] fix: also move rewrite_readable out of the loop --- tasks/test_results_processor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/test_results_processor.py b/tasks/test_results_processor.py index 0e0558317..26f17b98b 100644 --- a/tasks/test_results_processor.py +++ b/tasks/test_results_processor.py @@ -493,8 +493,7 @@ def process_individual_arg( ), ) - readable_report = self.rewrite_readable(network, report_contents) - + readable_report = self.rewrite_readable(network, report_contents) archive_service.write_file(upload.storage_path, readable_report.getvalue()) return TestResultsProcessingResult(