comparison contrib/check-code.py @ 31678:6a2959acae1a

runtests: change local IP glob pattern from "127.0.0.1" to "$LOCALIP" This is similar to what 348b2b9da703 does. Since 636cf3f7620d has changed "127.0.0.1" to "$LOCALIP". The glob pattern needs update accordingly. It is expected to fix tests running in some BSD jails.
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 19:57:17 -0700
parents 772878ac930e
children be8a866a2c44
comparison
equal deleted inserted replaced
31677:e6fd7930cf0b 31678:6a2959acae1a
208 r'( +(-[^ po-]+|--(?!program|option)[^ ]+|[^-][^ ]*))*$', 208 r'( +(-[^ po-]+|--(?!program|option)[^ ]+|[^-][^ ]*))*$',
209 "use $RUNTESTDIR/pdiff via extdiff (or -o/-p for false-positives)"), 209 "use $RUNTESTDIR/pdiff via extdiff (or -o/-p for false-positives)"),
210 ], 210 ],
211 # warnings 211 # warnings
212 [ 212 [
213 (r'^ (?!.*127\.0\.0\.1)[^*?/\n]* \(glob\)$', 213 (r'^ (?!.*\$LOCALIP)[^*?/\n]* \(glob\)$',
214 "glob match with no glob string (?, *, /, and 127.0.0.1)"), 214 "glob match with no glob string (?, *, /, and $LOCALIP)"),
215 ] 215 ]
216 ] 216 ]
217 217
218 for i in [0, 1]: 218 for i in [0, 1]:
219 for tp in testpats[i]: 219 for tp in testpats[i]: