Commit 23b1416866558626b56d38e8f28097945326695d

Martin Mitas 2024-01-18T15:11:22

pathological-tests.py: Fix output if a test unit ends with non-zero exit code.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/pathological-tests.py b/test/pathological-tests.py
index fa6318b..4ec175a 100644
--- a/test/pathological-tests.py
+++ b/test/pathological-tests.py
@@ -117,7 +117,7 @@ for description in pathological:
     end = timer()
     if rc != 0:
         errored += 1
-        print('{:35} [ERRORED (return code %d)]'.format(description, rc))
+        print('{:35} [ERRORED (exit code {})]'.format(description, rc))
         print(err)
     elif regex.search(actual):
         print('{:35} [PASSED] {:.3f} secs'.format(description, end-start))