From 289bcf1717caa135a92ddb0bae98c9ef7d02883c Mon Sep 17 00:00:00 2001 From: Sven Slootweg Date: Wed, 9 Apr 2014 21:05:47 +0200 Subject: [PATCH] Make test.py correctly exit with status code 1 if one or more tests fail. --- test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test.py b/test.py index f478747..40dbc57 100755 --- a/test.py +++ b/test.py @@ -174,6 +174,7 @@ if args.mode[0] == "run": sys.stdout.write(FAIL) sys.stdout.write("%d tests failed, %d errors in total.\n" % (total_failed, total_errors)) sys.stderr.write(ENDC) + exit(1) elif args.mode[0] == "update":