summaryrefslogtreecommitdiff
path: root/igor.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-12-07 08:10:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-12-07 08:10:47 -0500
commit70a235071f295090ae2b24a65697d4e87dca42b8 (patch)
tree3bbe92b92effa354cfaa7fd489469601a16420bf /igor.py
parent0bf3757a1ded9824663466a2aa5388e09d75c7e6 (diff)
downloadpython-coveragepy-70a235071f295090ae2b24a65697d4e87dca42b8.tar.gz
Properly return final status when measuring our own coverage
Diffstat (limited to 'igor.py')
-rw-r--r--igor.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/igor.py b/igor.py
index 2048d16..daf1053 100644
--- a/igor.py
+++ b/igor.py
@@ -162,7 +162,7 @@ def run_tests_with_coverage(tracer, *runner_args):
sys.modules.update(covmods)
# Run tests, with the arguments from our command line.
- run_tests(tracer, *runner_args)
+ status = run_tests(tracer, *runner_args)
finally:
cov.stop()
@@ -171,6 +171,8 @@ def run_tests_with_coverage(tracer, *runner_args):
cov.combine()
cov.save()
+ return status
+
def do_combine_html():
"""Combine data from a meta-coverage run, and make the HTML and XML reports."""