aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-06 02:26:55 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-06 02:26:55 +0300
commit31e28b49b5f254b014118837a4e59bcc441f2afc (patch)
tree90c0a17c0dbf5b4ec631c44d6402e37ba8325843 /test
parenttest: enable the utilities to accept many keys (diff)
downloadaes-tools-31e28b49b5f254b014118837a4e59bcc441f2afc.tar.gz
aes-tools-31e28b49b5f254b014118837a4e59bcc441f2afc.zip
test: don't stop after the first failure
Diffstat (limited to '')
-rw-r--r--test/toolkit.py5
1 files 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