From 31e28b49b5f254b014118837a4e59bcc441f2afc Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 6 Jun 2015 02:26:55 +0300 Subject: test: don't stop after the first failure --- test/toolkit.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/toolkit.py b/test/toolkit.py index 3c5f9dd..1a5859b 100644 --- a/test/toolkit.py +++ b/test/toolkit.py @@ -52,11 +52,12 @@ class Tools: print('\tExpected length:', len(expected_output), file=sys.stderr) print('\tActual length:', len(actual_output), file=sys.stderr) return False + no_mismatches = True for i in range(len(input)): if actual_output[i] != expected_output[i]: print('A mismatch detected!', file=sys.stderr) print('\tInput:', input[i], file=sys.stderr) print('\tExpected:', expected_output[i], file=sys.stderr) print('\tActual:', actual_output[i], file=sys.stderr) - return False - return True + no_mismatches = False + return no_mismatches -- cgit v1.2.3