Patchwork [3,of,4,V2] check-code: enforce the usage of 'seq.py' instead of 'seq'

login
register
mail settings
Submitter Matt Harbison
Date March 18, 2015, 2:24 a.m.
Message ID <ff44a900f4275ac11b93.1426645486@Envy>
Download mbox | patch
Permalink /patch/8143/
State Accepted
Commit 58682838f8f761e4d8f0c48cb2b07497c3631ac0
Headers show

Comments

Matt Harbison - March 18, 2015, 2:24 a.m.
# HG changeset patch
# User Matt Harbison <matt_harbison@yahoo.com>
# Date 1426643314 14400
#      Tue Mar 17 21:48:34 2015 -0400
# Node ID ff44a900f4275ac11b937841165b237bb1211dc6
# Parent  fb47194a8e28cc4b12770f04336e022cf67dd70a
check-code: enforce the usage of 'seq.py' instead of 'seq'

Patch

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -122,6 +122,7 @@ 
     (r'sed (-e )?\'(\d+|/[^/]*/)i(?!\\\n)',
      "put a backslash-escaped newline after sed 'i' command"),
     (r'^diff *-\w*u.*$\n(^  \$ |^$)', "prefix diff -u with cmp"),
+    (r'seq ', "don't use 'seq', use $TESTDIR/seq.py")
   ],
   # warnings
   [