Mercurial > hg
comparison tests/run-tests.py @ 15448:873f94ecd706
run-tests: convert windows paths to unix
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 07 Nov 2011 03:25:10 +0100 |
parents | 9910f60a37ee |
children | f71d60da58fb |
comparison
equal
deleted
inserted
replaced
15447:9910f60a37ee | 15448:873f94ecd706 |
---|---|
85 | 85 |
86 # reserved exit code to skip test (used by hghave) | 86 # reserved exit code to skip test (used by hghave) |
87 SKIPPED_STATUS = 80 | 87 SKIPPED_STATUS = 80 |
88 SKIPPED_PREFIX = 'skipped: ' | 88 SKIPPED_PREFIX = 'skipped: ' |
89 FAILED_PREFIX = 'hghave check failed: ' | 89 FAILED_PREFIX = 'hghave check failed: ' |
90 PYTHON = sys.executable | 90 PYTHON = sys.executable.replace('\\', '/') |
91 IMPL_PATH = 'PYTHONPATH' | 91 IMPL_PATH = 'PYTHONPATH' |
92 if 'java' in sys.platform: | 92 if 'java' in sys.platform: |
93 IMPL_PATH = 'JYTHONPATH' | 93 IMPL_PATH = 'JYTHONPATH' |
94 | 94 |
95 requiredtools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"] | 95 requiredtools = ["python", "diff", "grep", "unzip", "gunzip", "bunzip2", "sed"] |
863 return skip("not executable") | 863 return skip("not executable") |
864 runner = shtest | 864 runner = shtest |
865 | 865 |
866 # Make a tmp subdirectory to work in | 866 # Make a tmp subdirectory to work in |
867 testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ | 867 testtmp = os.environ["TESTTMP"] = os.environ["HOME"] = \ |
868 os.path.join(HGTMP, os.path.basename(test)) | 868 os.path.join(HGTMP, os.path.basename(test)).replace('\\', '/') |
869 | 869 |
870 os.mkdir(testtmp) | 870 os.mkdir(testtmp) |
871 ret, out = runner(testpath, testtmp, options, [ | 871 ret, out = runner(testpath, testtmp, options, [ |
872 (re.escape(testtmp), '$TESTTMP'), | 872 (re.escape(testtmp), '$TESTTMP'), |
873 (r':%s\b' % options.port, ':$HGPORT'), | 873 (r':%s\b' % options.port, ':$HGPORT'), |