run-tests: output coverage to output dir
There do not appear to be any tests for this, and I've never used either of
these options before, but this works.
--- a/tests/run-tests.py Wed Jun 07 20:46:43 2017 -0700
+++ b/tests/run-tests.py Wed Jun 07 21:17:06 2017 -0700
@@ -2754,10 +2754,10 @@
cov.report(ignore_errors=True, omit=omit)
if self.options.htmlcov:
- htmldir = os.path.join(self._testdir, 'htmlcov')
+ htmldir = os.path.join(self._outputdir, 'htmlcov')
cov.html_report(directory=htmldir, omit=omit)
if self.options.annotate:
- adir = os.path.join(self._testdir, 'annotated')
+ adir = os.path.join(self._outputdir, 'annotated')
if not os.path.isdir(adir):
os.mkdir(adir)
cov.annotate(directory=adir, omit=omit)