diff contrib/check-code.py @ 17711:cf204e9829f4

check-code: replace heredocs in unified tests Heredocs are usually fed to other commands and shouldn't follow the standard conventions of shell commands. This restores the old behaviour of how heredocs were handled in old-style test files.
author Idan Kamara <idankk86@gmail.com>
date Wed, 03 Oct 2012 22:09:18 +0200
parents efd1a4378b64
children fbe43efe4a53
line wrap: on
line diff
--- a/contrib/check-code.py	Wed Sep 19 20:33:20 2012 +0200
+++ b/contrib/check-code.py	Wed Oct 03 22:09:18 2012 +0200
@@ -116,6 +116,7 @@
         utestpats[i].append((p, m))
 
 utestfilters = [
+    (r"<<(\S+)((.|\n)*?\n  > \1)", rephere),
     (r"( *)(#([^\n]*\S)?)", repcomment),
 ]