[PATCH 14 of 19] run-tests: convert windows paths to unix
Mads Kiilerich
mads at kiilerich.com
Sun Nov 6 20:41:04 CST 2011
# HG changeset patch
# User Mads Kiilerich <mads at kiilerich.com>
# Date 1320632710 -3600
# Node ID b9873a60b9824f9239c692a0f39cbc50c8e358fc
# Parent 8606e94a5568547bc595c7ff2cd485c52504fd40
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 @@
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'
@@ -862,7 +862,7 @@
# 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, [
More information about the Mercurial-devel
mailing list