changeset 32719:74680ed89a29

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.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 07 Jun 2017 21:17:06 -0700
parents 232875623c27
children 0cd641bfbf57
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)