diff --git a/test.py b/test.py index 28ebbdb..f3dd4d2 100755 --- a/test.py +++ b/test.py @@ -148,6 +148,9 @@ def main(): for thread in threading.enumerate(): if thread is not threading.currentThread(): thread._Thread__stop() + # Exit correctly + if not result.wasSuccessful(): + sys.exit(1) if __name__ == '__main__':