# HG changeset patch # User Paul Boddie # Date 1314140484 -7200 # Node ID 0437979b6a63668edbd59afa05f215c86b1d94f9 # Parent 664bd4ab235a4b7d5a9b84673f17e67028e4ddb7 Fixed the return code when the -exit option is specified but where a test fails. diff -r 664bd4ab235a -r 0437979b6a63 test.py --- a/test.py Mon Aug 22 00:53:34 2011 +0200 +++ b/test.py Wed Aug 24 01:01:24 2011 +0200 @@ -119,4 +119,11 @@ else: raise + else: + if "-exit" in args and "-t" in args: + if success: + sys.exit(0) + else: + sys.exit(1) + # vim: tabstop=4 expandtab shiftwidth=4