forked from ungleich-public/cdist
Make cdist.test return exit code.
This commit is contained in:
parent
256c8324a0
commit
9afc17f3f8
1 changed files with 2 additions and 1 deletions
|
@ -45,4 +45,5 @@ for test_module in test_modules:
|
||||||
suites.append(suite)
|
suites.append(suite)
|
||||||
|
|
||||||
all_suites = unittest.TestSuite(suites)
|
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)
|
||||||
|
|
Loading…
Reference in a new issue