From ea4994aea1b10040920cc54736299fb5c218f151 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 2 Jun 2011 13:24:46 +0200 Subject: test.py: exit non-zero on failure The exit status is now the number of failures. --- test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3