Mercurial > hg
changeset 17111:bddf1220d7a2
check-code: verify that 'saved backup bundle to ...' is '(glob)'ed
This is the most frequent trivial reason tests fail on Windows.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 05 Jul 2012 00:49:26 +0200 |
parents | 722fd97f6645 |
children | f690402e80fb |
files | contrib/check-code.py tests/test-convert-filemap.t |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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