diff tests/run-tests.py @ 44586:f8427841c8fc

merge with stable
author Yuya Nishihara <yuya@tcha.org>
date Fri, 20 Mar 2020 17:18:14 +0900
parents b2e41723f886 fb7da4759a18
children 78a8f65eacc8
line wrap: on
line diff
--- a/tests/run-tests.py	Thu Mar 19 14:54:10 2020 -0400
+++ b/tests/run-tests.py	Fri Mar 20 17:18:14 2020 +0900
@@ -1632,7 +1632,7 @@
             return self._have.get(allreqs)
 
         # TODO do something smarter when all other uses of hghave are gone.
-        runtestdir = os.path.abspath(os.path.dirname(_sys2bytes(__file__)))
+        runtestdir = osenvironb[b'RUNTESTDIR']
         tdir = runtestdir.replace(b'\\', b'/')
         proc = Popen4(
             b'%s -c "%s/hghave %s"' % (self._shell, tdir, allreqs),