diff -r 1cbc00ff2373 -r 5bd04faaa3ee tests/run-tests.py --- a/tests/run-tests.py Tue Nov 18 16:14:32 2014 -0800 +++ b/tests/run-tests.py Tue Nov 18 22:02:00 2014 -0500 @@ -721,6 +721,15 @@ return result +# This script may want to drop globs from lines matching these patterns on +# Windows, but check-code.py wants a glob on these lines unconditionally. Don't +# warn if that is the case for anything matching these lines. +checkcodeglobpats = [ + re.compile(r'^pushing to \$TESTTMP/.*[^)]$'), + re.compile(r'^moving \S+/.*[^)]$'), + re.compile(r'^pulling from \$TESTTMP/.*[^)]$') +] + class TTest(Test): """A "t test" is a test backed by a .t file.""" @@ -977,6 +986,9 @@ if el + '\n' == l: if os.altsep: # matching on "/" is not needed for this line + for pat in checkcodeglobpats: + if pat.match(el): + return True return '-glob' return True i, n = 0, len(el)