summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2012-09-10 11:35:02 -0700
committerJeff Forcier <jeff@bitprophet.org>2012-09-24 18:59:37 -0700
commit557eb524f0da37373795407ad63517f7ddf59d3f (patch)
treeefafe0f7d1e80df4283f0c53ae4077eb81f809a7
parente0be91a4c9804828f4a2531cfdb785ff978e10cf (diff)
downloadparamiko-557eb524f0da37373795407ad63517f7ddf59d3f.tar.gz
Exit correctly so test.py can be used in CI
(cherry picked from commit d516fe71ea1d8bdb7b2e278fa519f7f860d7e234)
-rwxr-xr-xtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test.py b/test.py
index 28ebbdb5..f3dd4d24 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__':