mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
Test sys.exit(0) after loading tests
Signed-off-by: Vladimir Diaz <vladimir.v.diaz@gmail.com>
This commit is contained in:
parent
3d3a780c1d
commit
321fbcd0cd
1 changed files with 1 additions and 0 deletions
|
|
@ -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)')
|
||||
|
|
|
|||
Loading…
Reference in a new issue