Add return code for regression test

This commit is contained in:
Matt Guthaus 2018-07-05 16:27:47 -07:00
parent f34c4eb7dc
commit 077f3f20ec
1 changed files with 2 additions and 1 deletions

3
compiler/tests/regress.py Normal file → Executable file
View File

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