From d03540faf30ccc96732908b7df562dc7feef50cc Mon Sep 17 00:00:00 2001 From: Beau Gunderson Date: Thu, 16 Apr 2009 17:59:38 +0000 Subject: [PATCH] Properly return exit code from nose. --- tests/run_tests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index 62580c4f2..35d7083a9 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -62,7 +62,10 @@ def main(): argv.append('-v') argv.append('-v') - nose.run(argv=argv, plugins=[TodoPlugin()]) + if not nose.run(argv=argv, plugins=[TodoPlugin()]): + sys.exit(1) + else: + sys.exit(0) if __name__ == "__main__": main()