tests/run-tests.py
changeset 43046 e360acfaf210
parent 42918 f059d6ffcdf0
child 43073 5c9c71cde1c9
--- a/tests/run-tests.py	Thu Oct 03 13:18:15 2019 -0700
+++ b/tests/run-tests.py	Fri Oct 04 18:18:38 2019 +0100
@@ -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)