Mercurial > hg-stable
comparison tests/common-pattern.py @ 35450:991e4404e910
tests: convert the 'file://\$TESTTMP' rule to an automatic substitution
The rule only triggered on non Windows platforms, even though Windows also
required an adjustment. Automatic seems better.
The aggressive globbing in test-subrepo-svn.t was found and rewritten by the
substitution.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 16 Dec 2017 11:32:10 -0500 |
parents | ad5f2b923b0d |
children | 24528dba0e64 |
comparison
equal
deleted
inserted
replaced
35449:b86f52426396 | 35450:991e4404e910 |
---|---|
36 ), | 36 ), |
37 # HTTP log dates | 37 # HTTP log dates |
38 (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET', | 38 (br' - - \[\d\d/.../2\d\d\d \d\d:\d\d:\d\d] "GET', |
39 br' - - [$LOGDATE$] "GET' | 39 br' - - [$LOGDATE$] "GET' |
40 ), | 40 ), |
41 # Windows has an extra '/' in the following lines that get globbed away: | |
42 # pushing to file:/*/$TESTTMP/r2 (glob) | |
43 # comparing with file:/*/$TESTTMP/r2 (glob) | |
44 # sub/maybelarge.dat: largefile 34..9c not available from | |
45 # file:/*/$TESTTMP/largefiles-repo (glob) | |
46 (br'(.*file:/)/?(/\$TESTTMP.*)', | |
47 lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)' | |
48 ), | |
41 ] | 49 ] |
42 | 50 |
43 # Various platform error strings, keyed on a common replacement string | 51 # Various platform error strings, keyed on a common replacement string |
44 _errors = { | 52 _errors = { |
45 br'$ENOENT$': ( | 53 br'$ENOENT$': ( |