summaryrefslogtreecommitdiff
path: root/ptr.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2012-10-22 12:12:23 -0400
committerJason R. Coombs <jaraco@jaraco.com>2012-10-22 12:12:23 -0400
commitfe52b5a448f559e70297cbd836eca228656746c4 (patch)
treebc8f5a02c555c867d712b26c2ba2b7a07aba817e /ptr.py
parent321a0b611d0e78c57a7904afe7e508cd8bf339a1 (diff)
downloadpytest-runner-fe52b5a448f559e70297cbd836eca228656746c4.tar.gz
Force exit on test failure1.2
Diffstat (limited to 'ptr.py')
-rw-r--r--ptr.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ptr.py b/ptr.py
index 4cea126..3e27da6 100644
--- a/ptr.py
+++ b/ptr.py
@@ -55,6 +55,8 @@ class PyTest(_pytest_runner_test.test):
self.announce('skipping tests (dry run)')
return
self.with_project_on_sys_path(self.run_tests)
+ if self.result_code:
+ raise SystemExit(self.result_code)
return self.result_code
def _build_egg_fetcher(self):