The 'test' command in setup.py should use exit status to communicate test pass/failure

This commit is contained in:
Luke Lovett 2014-05-01 21:00:43 +00:00
parent 687a1f41bf
commit a679840cdc

View File

@ -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):