# HG changeset patch # User Mads Kiilerich # Date 1320632710 -3600 # Node ID 23144f06919cf246c435f6bfc5ee26ec91e96a6f # Parent 90c15a7573df14d85716f4486f6779590d7ead55 run-tests: make $TESTTMP matching case-insensitive on windows diff -r 90c15a7573df -r 23144f06919c tests/run-tests.py --- a/tests/run-tests.py Mon Nov 07 03:25:10 2011 +0100 +++ b/tests/run-tests.py Mon Nov 07 03:25:10 2011 +0100 @@ -870,13 +870,20 @@ os.path.join(HGTMP, os.path.basename(test)).replace('\\', '/') replacements = [ - (re.escape(testtmp), '$TESTTMP'), (r':%s\b' % options.port, ':$HGPORT'), (r':%s\b' % (options.port + 1), ':$HGPORT1'), (r':%s\b' % (options.port + 2), ':$HGPORT2'), ] if os.name == 'nt': replacements.append((r'\r\n', '\n')) + replacements.append( + (''.join(c.isalpha() and '[%s%s]' % (c.lower(), c.upper()) or + c in '/\\' and r'[/\\]' or + c.isdigit() and c or + '\\' + c + for c in testtmp), '$TESTTMP')) + else: + replacements.append((re.escape(testtmp), '$TESTTMP')) os.mkdir(testtmp) ret, out = runner(testpath, testtmp, options, replacements)