Add negation to return code so tests fail or pass properly.

This commit is contained in:
Matt Guthaus 2018-07-06 07:27:26 -07:00
parent 299a9432e6
commit 733be110a2
1 changed files with 1 additions and 1 deletions

View File

@ -27,5 +27,5 @@ modules = map(__import__, moduleNames)
suite = unittest.TestSuite()
load = unittest.defaultTestLoader.loadTestsFromModule
suite.addTests(map(load, modules))
ret = unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful()
ret = not unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful()
sys.exit(ret)