Skip to content

Commit

Permalink
If the test fails, exit code is 1
Browse files Browse the repository at this point in the history
  • Loading branch information
serima committed Jan 25, 2017
1 parent 369ac77 commit b07418b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test-suite
Original file line number Diff line number Diff line change
Expand Up @@ -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())

0 comments on commit b07418b

Please sign in to comment.