summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2011-06-02 13:24:46 +0200
committerHelmut Grohne <helmut@subdivi.de>2011-06-02 13:24:46 +0200
commitea4994aea1b10040920cc54736299fb5c218f151 (patch)
tree3cb973ddbab0f8d54d70f21cecc27d409677dab6
parentfbfd3ddce24a9f86838f64753d8654ddf6c31d81 (diff)
downloadwsgitools-ea4994aea1b10040920cc54736299fb5c218f151.tar.gz
test.py: exit non-zero on failure
The exit status is now the number of failures.
-rwxr-xr-xtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test.py b/test.py
index 54cb60b..043d059 100755
--- a/test.py
+++ b/test.py
@@ -265,4 +265,4 @@ if __name__ == "__main__":
prof.runcall(runner.run, fullsuite)
prof.dump_stats("wsgitools.pstat")
else:
- runner.run(fullsuite)
+ sys.exit(len(runner.run(fullsuite).failures))