##// END OF EJS Templates
run-tests: don't warn on unnecessary globs mandated by check-code.py...
Matt Harbison -
r23352:5bd04faa default
parent child Browse files
Show More
@@ -721,6 +721,15 b' class PythonTest(Test):'
721 721
722 722 return result
723 723
724 # This script may want to drop globs from lines matching these patterns on
725 # Windows, but check-code.py wants a glob on these lines unconditionally. Don't
726 # warn if that is the case for anything matching these lines.
727 checkcodeglobpats = [
728 re.compile(r'^pushing to \$TESTTMP/.*[^)]$'),
729 re.compile(r'^moving \S+/.*[^)]$'),
730 re.compile(r'^pulling from \$TESTTMP/.*[^)]$')
731 ]
732
724 733 class TTest(Test):
725 734 """A "t test" is a test backed by a .t file."""
726 735
@@ -977,6 +986,9 b' class TTest(Test):'
977 986 if el + '\n' == l:
978 987 if os.altsep:
979 988 # matching on "/" is not needed for this line
989 for pat in checkcodeglobpats:
990 if pat.match(el):
991 return True
980 992 return '-glob'
981 993 return True
982 994 i, n = 0, len(el)
General Comments 0
You need to be logged in to leave comments. Login now