contrib/check-code.py
changeset 16673 775a8d33e6f0
parent 16672 d046eb97d21e
child 16683 525fdb738975
--- 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)',