From 557eb524f0da37373795407ad63517f7ddf59d3f Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 10 Sep 2012 11:35:02 -0700 Subject: [PATCH] Exit correctly so test.py can be used in CI (cherry picked from commit d516fe71ea1d8bdb7b2e278fa519f7f860d7e234) --- test.py | 3 +++ 1 file changed, 3 insertions(+) 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__':