##// END OF EJS Templates
run-tests: add support for using 127.0.0.1 as a glob...
Augie Fackler -
r29518:348b2b9d default
parent child Browse files
Show More
@@ -949,13 +949,18 b' class PythonTest(Test):'
949 949
950 950 return result
951 951
952 # This script may want to drop globs from lines matching these patterns on
953 # Windows, but check-code.py wants a glob on these lines unconditionally. Don't
954 # warn if that is the case for anything matching these lines.
952 # Some glob patterns apply only in some circumstances, so the script
953 # might want to remove (glob) annotations that otherwise should be
954 # retained.
955 955 checkcodeglobpats = [
956 # On Windows it looks like \ doesn't require a (glob), but we know
957 # better.
956 958 re.compile(br'^pushing to \$TESTTMP/.*[^)]$'),
957 959 re.compile(br'^moving \S+/.*[^)]$'),
958 re.compile(br'^pulling from \$TESTTMP/.*[^)]$')
960 re.compile(br'^pulling from \$TESTTMP/.*[^)]$'),
961 # Not all platforms have 127.0.0.1 as loopback (though most do),
962 # so we always glob that too.
963 re.compile(br'.*127.0.0.1.*$'),
959 964 ]
960 965
961 966 bchr = chr
@@ -1263,6 +1268,7 b' class TTest(Test):'
1263 1268 return True
1264 1269 return b'-glob'
1265 1270 return True
1271 el = el.replace(b'127.0.0.1', b'*')
1266 1272 i, n = 0, len(el)
1267 1273 res = b''
1268 1274 while i < n:
@@ -735,6 +735,10 b' backslash on end of line with glob match'
735 735
736 736 $ rm -f test-glob-backslash.t
737 737
738 Test globbing of 127.0.0.1
739 $ echo 172.16.18.1
740 127.0.0.1 (glob)
741
738 742 Test reusability for third party tools
739 743 ======================================
740 744
General Comments 0
You need to be logged in to leave comments. Login now