check-code: verify that 'saved backup bundle to ...' is '(glob)'ed
This is the most frequent trivial reason tests fail on Windows.
--- a/contrib/check-code.py Thu Jul 05 00:35:42 2012 +0200
+++ b/contrib/check-code.py Thu Jul 05 00:49:26 2012 +0200
@@ -100,6 +100,8 @@
"explicit exit code checks unnecessary"),
(uprefix + r'set -e', "don't use set -e"),
(uprefix + r'\s', "don't indent commands, use > for continued lines"),
+ (r'^ saved backup bundle to \$TESTTMP.*\.hg$',
+ "use (glob) to match Windows paths too"),
],
# warnings
[]
--- a/tests/test-convert-filemap.t Thu Jul 05 00:35:42 2012 +0200
+++ b/tests/test-convert-filemap.t Thu Jul 05 00:49:26 2012 +0200
@@ -527,7 +527,7 @@
$ cd namedbranch
$ hg --config extensions.mq= strip tip
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
- saved backup bundle to $TESTTMP/namedbranch/.hg/strip-backup/73899bcbe45c-backup.hg
+ saved backup bundle to $TESTTMP/namedbranch/.hg/strip-backup/73899bcbe45c-backup.hg (glob)
$ hg up foo
2 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg merge default