From fbcc9b5c770c7fb4fbb879b88c9af5be024b2712 Mon Sep 17 00:00:00 2001 From: Mikhail Korobov Date: Tue, 26 Feb 2013 16:03:25 +0600 Subject: [PATCH] Test running improvements: all tests can be run with tox; run.py script exits with an error code in case of failures. --- Tests/run.py | 1 + tox.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/Tests/run.py b/Tests/run.py index 1ce31448c..7b4f1ac48 100644 --- a/Tests/run.py +++ b/Tests/run.py @@ -91,5 +91,6 @@ if skipped: print(skipped) if failure: print("***", tests(failure), "of", (success + failure), "failed.") + sys.exit(1) else: print(tests(success), "passed.") diff --git a/tox.ini b/tox.ini index 338c94d6b..43b83de70 100644 --- a/tox.ini +++ b/tox.ini @@ -9,3 +9,4 @@ envlist = py26, py27, py32, py33, pypy [testenv] commands = {envpython} selftest.py + {envpython} Tests/run.py --installed