From 45922dd21082faafcaa77f385eda9c89a9544a15 Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Wed, 13 Jul 2022 12:20:08 -0700 Subject: [PATCH] Updated some print statements. Everything looks good! --- bin/docker_detection_tester/summarize_json.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/docker_detection_tester/summarize_json.py b/bin/docker_detection_tester/summarize_json.py index 1c57b4e07e..2252cb62c9 100644 --- a/bin/docker_detection_tester/summarize_json.py +++ b/bin/docker_detection_tester/summarize_json.py @@ -123,20 +123,20 @@ def finish(test_pass:bool, test_count: int, pass_count:int, fail_count:int, erro def get_formatted_error_text(data:list[dict])->str: #Get all of the errors - error_strings = ["\n\nError Details:"] + error_strings = ["\n\Detailed Errors:"] for errored_test in data: try: full_detection_path = os.path.join("security_content/detections",errored_test['detection_file']) except Exception as e: full_detection_path = "UNKNOWN PATH" try: - error_string = errored_test['error'] + error_string = errored_test['detection_error'] except Exception as e: error_string = "UNKNOWN ERROR" - error_strings.append(f"\nError Processing [{full_detection_path}]:\n\t* {error_string}") + error_strings.append(f"\nError Processing [{full_detection_path}]:\n\n\t* {error_string}") - return ''.join(error_strings) + return ''.join(error_strings) + '\n' def main(): parser = argparse.ArgumentParser(description="Results Merger")