Return failure if the tidy self-tests fail.

This commit is contained in:
Ms2ger 2016-07-23 15:29:06 +02:00
parent 7ea73ba2ee
commit 3548b5edd0

View file

@ -138,4 +138,4 @@ class CheckTidiness(unittest.TestCase):
def do_tests():
suite = unittest.TestLoader().loadTestsFromTestCase(CheckTidiness)
unittest.TextTestRunner(verbosity=2).run(suite)
return 0 if unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful() else 1