Test sys.exit(0) after loading tests

Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
Vladimir Diaz 2018-05-02 15:42:18 -04:00
parent 3d3a780c1d
commit 321fbcd0cd
No known key found for this signature in database
GPG key ID: 5DEE9B97B0E2289A

View file

@ -59,6 +59,7 @@
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromNames(tests_without_extension)
print('calling sys.exit(0) after loading tests')
all_tests_passed = unittest.TextTestRunner(verbosity=1).run(suite).wasSuccessful()
if not all_tests_passed:
print('calling sys.exit(1)')