From a679840cdc92a0758de3ccc40fa740d7f0b96601 Mon Sep 17 00:00:00 2001 From: Luke Lovett Date: Thu, 1 May 2014 21:00:43 +0000 Subject: [PATCH] The 'test' command in setup.py should use exit status to communicate test pass/failure --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 9a2fed327..a06fa5e2e 100755 --- a/setup.py +++ b/setup.py @@ -102,7 +102,8 @@ class test(Command): suite = PymongoTestLoader().loadTestsFromName(self.test_suite) runner = unittest.TextTestRunner(verbosity=2, failfast=self.failfast) - runner.run(suite) + result = runner.run(suite) + sys.exit(not result.wasSuccessful()) class doc(Command):