Patchwork D6960: run-tests: make coverage work out of tree

login
register
mail settings
Submitter phabricator
Date Oct. 4, 2019, 5:34 p.m.
Message ID <bda6fb29e1976c7ec307572685826bd5@localhost.localdomain>
Download mbox | patch
Permalink /patch/41953/
State Not Applicable
Headers show

Comments

phabricator - Oct. 4, 2019, 5:34 p.m.
Closed by commit rHGe360acfaf210: run-tests: make coverage work out of tree (authored by Kwan).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6960?vs=16796&id=16798

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6960/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6960

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: Kwan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -3170,7 +3170,7 @@ 
                 print('WARNING: cannot fix hg.bat reference to python.exe')
 
         if self.options.anycoverage:
-            custom = os.path.join(self._testdir, 'sitecustomize.py')
+            custom = os.path.join(osenvironb[b'RUNTESTDIR'], 'sitecustomize.py')
             target = os.path.join(self._pythondir, 'sitecustomize.py')
             vlog('# Installing coverage trigger to %s' % target)
             shutil.copyfile(custom, target)