Make cdist.test return exit code.

This commit is contained in:
Darko Poljak 2018-10-10 10:37:29 +02:00
parent 256c8324a0
commit 9afc17f3f8

View file

@ -45,4 +45,5 @@ for test_module in test_modules:
suites.append(suite)
all_suites = unittest.TestSuite(suites)
unittest.TextTestRunner(verbosity=2).run(all_suites)
rv = unittest.TextTestRunner(verbosity=2).run(all_suites).wasSuccessful()
sys.exit(not rv)