# HG changeset patch # User Mads Kiilerich # Date 2011-11-07 02:25:10 # Node ID 873f94ecd70694a8f788f244c028fd76f56028e0 # Parent 9910f60a37ee6f2fa6f0457b01e380afdade92f6 run-tests: convert windows paths to unix diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -87,7 +87,7 @@ def Popen4(cmd, wd, timeout): SKIPPED_STATUS = 80 SKIPPED_PREFIX = 'skipped: ' FAILED_PREFIX = 'hghave check failed: ' -PYTHON = sys.executable +PYTHON = sys.executable.replace('\\', '/') IMPL_PATH = 'PYTHONPATH' if 'java' in sys.platform: IMPL_PATH = 'JYTHONPATH' @@ -865,7 +865,7 @@ def runone(options, test): # Make a tmp subdirectory to work in testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ - os.path.join(HGTMP, os.path.basename(test)) + os.path.join(HGTMP, os.path.basename(test)).replace('\\', '/') os.mkdir(testtmp) ret, out = runner(testpath, testtmp, options, [