Show More
@@ -210,8 +210,8 b' utestpats = [' | |||||
210 | ], |
|
210 | ], | |
211 | # warnings |
|
211 | # warnings | |
212 | [ |
|
212 | [ | |
213 |
(r'^ (?!.* |
|
213 | (r'^ (?!.*\$LOCALIP)[^*?/\n]* \(glob\)$', | |
214 |
"glob match with no glob string (?, *, /, and |
|
214 | "glob match with no glob string (?, *, /, and $LOCALIP)"), | |
215 | ] |
|
215 | ] | |
216 | ] |
|
216 | ] | |
217 |
|
217 |
@@ -1034,7 +1034,7 b' checkcodeglobpats = [' | |||||
1034 | re.compile(br'^pulling from \$TESTTMP/.*[^)]$'), |
|
1034 | re.compile(br'^pulling from \$TESTTMP/.*[^)]$'), | |
1035 | # Not all platforms have 127.0.0.1 as loopback (though most do), |
|
1035 | # Not all platforms have 127.0.0.1 as loopback (though most do), | |
1036 | # so we always glob that too. |
|
1036 | # so we always glob that too. | |
1037 |
re.compile(br'.* |
|
1037 | re.compile(br'.*\$LOCALIP.*$'), | |
1038 | ] |
|
1038 | ] | |
1039 |
|
1039 | |||
1040 | bchr = chr |
|
1040 | bchr = chr | |
@@ -1342,7 +1342,7 b' class TTest(Test):' | |||||
1342 | return True |
|
1342 | return True | |
1343 | return b'-glob' |
|
1343 | return b'-glob' | |
1344 | return True |
|
1344 | return True | |
1345 |
el = el.replace(b' |
|
1345 | el = el.replace(b'$LOCALIP', b'*') | |
1346 | i, n = 0, len(el) |
|
1346 | i, n = 0, len(el) | |
1347 | res = b'' |
|
1347 | res = b'' | |
1348 | while i < n: |
|
1348 | while i < n: |
@@ -735,9 +735,11 b' backslash on end of line with glob match' | |||||
735 |
|
735 | |||
736 | $ rm -f test-glob-backslash.t |
|
736 | $ rm -f test-glob-backslash.t | |
737 |
|
737 | |||
738 | Test globbing of 127.0.0.1 |
|
738 | Test globbing of local IP addresses | |
739 | $ echo 172.16.18.1 |
|
739 | $ echo 172.16.18.1 | |
740 | 127.0.0.1 (glob) |
|
740 | $LOCALIP (glob) | |
|
741 | $ echo dead:beef::1 | |||
|
742 | $LOCALIP (glob) | |||
741 |
|
743 | |||
742 | Test reusability for third party tools |
|
744 | Test reusability for third party tools | |
743 | ====================================== |
|
745 | ====================================== |
General Comments 0
You need to be logged in to leave comments.
Login now