2011-08-24 | Paul Boddie | raw files shortlog changelog graph | Fixed the return code when the -exit option is specified but where a test fails. | |
test.py (file) |
1.1 --- a/test.py Mon Aug 22 00:53:34 2011 +0200 1.2 +++ b/test.py Wed Aug 24 01:01:24 2011 +0200 1.3 @@ -119,4 +119,11 @@ 1.4 else: 1.5 raise 1.6 1.7 + else: 1.8 + if "-exit" in args and "-t" in args: 1.9 + if success: 1.10 + sys.exit(0) 1.11 + else: 1.12 + sys.exit(1) 1.13 + 1.14 # vim: tabstop=4 expandtab shiftwidth=4