tests/run-tests.py
changeset 25728 905c32321cfb
parent 25388 6025cac3d02f
child 25729 57dfadc4f46c
--- a/tests/run-tests.py	Mon Jul 06 23:23:22 2015 -0400
+++ b/tests/run-tests.py	Fri Jul 03 06:56:03 2015 +0900
@@ -902,7 +902,8 @@
 
     def _hghave(self, reqs):
         # TODO do something smarter when all other uses of hghave are gone.
-        tdir = self._testdir.replace(b'\\', b'/')
+        runtestdir = os.path.abspath(os.path.dirname(_bytespath(__file__)))
+        tdir = runtestdir.replace(b'\\', b'/')
         proc = Popen4(b'%s -c "%s/hghave %s"' %
                       (self._shell, tdir, b' '.join(reqs)),
                       self._testtmp, 0, self._getenv())