Show More
@@ -870,13 +870,20 b' def runone(options, test):' | |||
|
870 | 870 | os.path.join(HGTMP, os.path.basename(test)).replace('\\', '/') |
|
871 | 871 | |
|
872 | 872 | replacements = [ |
|
873 | (re.escape(testtmp), '$TESTTMP'), | |
|
874 | 873 | (r':%s\b' % options.port, ':$HGPORT'), |
|
875 | 874 | (r':%s\b' % (options.port + 1), ':$HGPORT1'), |
|
876 | 875 | (r':%s\b' % (options.port + 2), ':$HGPORT2'), |
|
877 | 876 | ] |
|
878 | 877 | if os.name == 'nt': |
|
879 | 878 | replacements.append((r'\r\n', '\n')) |
|
879 | replacements.append( | |
|
880 | (''.join(c.isalpha() and '[%s%s]' % (c.lower(), c.upper()) or | |
|
881 | c in '/\\' and r'[/\\]' or | |
|
882 | c.isdigit() and c or | |
|
883 | '\\' + c | |
|
884 | for c in testtmp), '$TESTTMP')) | |
|
885 | else: | |
|
886 | replacements.append((re.escape(testtmp), '$TESTTMP')) | |
|
880 | 887 | |
|
881 | 888 | os.mkdir(testtmp) |
|
882 | 889 | ret, out = runner(testpath, testtmp, options, replacements) |
General Comments 0
You need to be logged in to leave comments.
Login now