From 1941de0dedd882314d546961c2c708280c5f8379 Mon Sep 17 00:00:00 2001 From: drunkendog Date: Tue, 26 Sep 2023 17:41:50 +0100 Subject: [PATCH] Fix issue with differ print --- run-tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.py b/run-tests.py index 5cba667..11efe68 100644 --- a/run-tests.py +++ b/run-tests.py @@ -34,7 +34,7 @@ for file_name in glob.glob("*.c", recursive=False): total_tests += 1 passed_tests += test_passed_int print(f"\u001b[{31 + test_passed_int}m({x_split[0]})\u001b[0m") - if not passed_tests: + if not test_passed_int: [print(x) for x in difflib.Differ().compare(x_split[1].splitlines(), return_data.splitlines())] else: [print(x) for x in return_data.splitlines()]