Mercurial > public > mercurial-scm > hg
diff contrib/check-code.py @ 16673:775a8d33e6f0
tests: unify the last sh tests
This requires a slightly smarter check-code check for sed output filtering.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 25 Apr 2012 01:35:39 +0200 |
parents | d046eb97d21e |
children | 525fdb738975 |
line wrap: on
line diff
--- a/contrib/check-code.py Wed Apr 25 01:35:39 2012 +0200 +++ b/contrib/check-code.py Wed Apr 25 01:35:39 2012 +0200 @@ -92,7 +92,8 @@ utestpats = [ [ (r'^(\S| $ ).*(\S[ \t]+|^[ \t]+)\n', "trailing whitespace on non-output"), - (uprefix + r'.*\|\s*sed', "use regex test output patterns instead of sed"), + (uprefix + r'.*\|\s*sed[^|>\n]*\n', + "use regex test output patterns instead of sed"), (uprefix + r'(true|exit 0)', "explicit zero exit unnecessary"), (uprefix + r'.*(?<!\[)\$\?', "explicit exit code checks unnecessary"), (uprefix + r'.*\|\| echo.*(fail|error)',