run-tests: output coverage to output dir
authorSiddharth Agarwal <sid0@fb.com>
Wed, 07 Jun 2017 21:17:06 -0700
changeset 32739 74680ed89a29
parent 32738 232875623c27
child 32740 0cd641bfbf57
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.
tests/run-tests.py
--- 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)