diff options
author | Ryo Shibayama <j02521@gmail.com> | 2017-01-25 14:09:51 +0900 |
---|---|---|
committer | Ryo Shibayama <j02521@gmail.com> | 2017-01-25 14:09:51 +0900 |
commit | b07418b27f6161070b87bf340f7102767be9b348 (patch) | |
tree | b6e7526a020dae600a0a46ff3e8ba56fb0ae4401 | |
parent | 369ac77c6cc100c41f70cc757f14b3bc895e98b0 (diff) |
If the test fails, exit code is 1
-rwxr-xr-x | test/test-suite | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test-suite b/test/test-suite index e26b54e..717e9c8 100755 --- a/test/test-suite +++ b/test/test-suite @@ -2100,4 +2100,6 @@ def suite(): return unittest.TestSuite([basic_module_stuff, basic_stuff, parsing_mode, sql, formatting]) if __name__ == '__main__': - unittest.TextTestRunner(verbosity=2).run(suite()) + test_runner = unittest.TextTestRunner(verbosity=2) + result = test_runner.run(suite()) + sys.exit(not result.wasSuccessful()) |