tests: use the right directory for running hghave from run-tests.py
authorMads Kiilerich <mads@kiilerich.com>
Sun, 10 Jun 2012 18:50:42 +0200
changeset 16906 2a95830cff77
parent 16905 671c73d523cf
child 16907 91dc9587862e
tests: use the right directory for running hghave from run-tests.py
tests/run-tests.py
--- a/tests/run-tests.py	Sun Jun 10 18:50:42 2012 +0200
+++ b/tests/run-tests.py	Sun Jun 10 18:50:42 2012 +0200
@@ -601,7 +601,7 @@
         # TODO: do something smarter when all other uses of hghave is gone
         tdir = TESTDIR.replace('\\', '/')
         proc = Popen4('%s -c "%s/hghave %s"' %
-                      (options.shell, tdir, ' '.join(reqs)), TESTDIR, 0)
+                      (options.shell, tdir, ' '.join(reqs)), wd, 0)
         proc.communicate()
         ret = proc.wait()
         if wifexited(ret):