comparison contrib/check-code.py @ 18833:b1a42a6087ca

tests: append missing glob to filename output and check-code it
author Simon Heimberg <simohe@besonet.ch>
date Fri, 01 Mar 2013 00:03:51 +0100
parents a911e5dc2b00
children 1a4a939a6b90
comparison
equal deleted inserted replaced
18832:a911e5dc2b00 18833:b1a42a6087ca
101 (uprefix + r'.*\|\| echo.*(fail|error)', 101 (uprefix + r'.*\|\| echo.*(fail|error)',
102 "explicit exit code checks unnecessary"), 102 "explicit exit code checks unnecessary"),
103 (uprefix + r'set -e', "don't use set -e"), 103 (uprefix + r'set -e', "don't use set -e"),
104 (uprefix + r'\s', "don't indent commands, use > for continued lines"), 104 (uprefix + r'\s', "don't indent commands, use > for continued lines"),
105 (r'^ saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg), 105 (r'^ saved backup bundle to \$TESTTMP.*\.hg$', winglobmsg),
106 (r'^ changeset .* references (corrupted|missing) \$TESTTMP/.*[^)]$', winglobmsg),
106 ], 107 ],
107 # warnings 108 # warnings
108 [ 109 [
109 (r'^ [^*?/\n]* \(glob\)$', 110 (r'^ [^*?/\n]* \(glob\)$',
110 "warning: glob match with no glob character (?*/)"), 111 "warning: glob match with no glob character (?*/)"),