Permalink
Browse files

Exit correctly so test.py can be used in CI

  • Loading branch information...
1 parent 734f3d6 commit d516fe71ea1d8bdb7b2e278fa519f7f860d7e234 @bitprophet committed Sep 10, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 test.py
View
@@ -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__':

0 comments on commit d516fe7

Please sign in to comment.