From db2d26b8f88343e6edf56e2799c3168f9e9ab38a Mon Sep 17 00:00:00 2001 From: James Sweet Date: Thu, 26 Feb 2015 13:48:18 -0500 Subject: [PATCH] Update test runner to test all of a tests files before exiting --- test/test.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test.py b/test/test.py index cc053f2..7a6d006 100755 --- a/test/test.py +++ b/test/test.py @@ -106,8 +106,6 @@ def run_test(protomol_path, conf_file, pwd, parallel): logging.warning('\t\tFailed') testsfailed += 1 failedtests.append('Comparison of ' + expects[i] + ' and ' + outputs[i]) - if args.errorfailure: - sys.exit(1) else: if comparator.compare(expects[i], outputs[i], epsilon, scaling_factor, ignoreSign): logging.info('\t\tPassed') @@ -116,8 +114,9 @@ def run_test(protomol_path, conf_file, pwd, parallel): logging.warning('\t\tFailed') testsfailed += 1 failedtests.append('Comparison of ' + expects[i] + ' and ' + outputs[i]) - if args.errorfailure: - sys.exit(1) + + if args.errorfailure: + sys.exit(1) return (tests, testspassed, testsfailed, failedtests)