comparison contrib/check-code.py @ 12367:3acd5f7ab9d0

tests: compatibility fix. 'touch -d *' doesn't work on Mac OS X. In order to prevent this from occuring again, a check for the case is added to 'check-code.py'.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Tue, 21 Sep 2010 18:36:23 +0200
parents c01dc9087d9a
children 4c4aeaab2339
comparison
equal deleted inserted replaced
12366:c01dc9087d9a 12367:3acd5f7ab9d0
61 (r'\$PWD', "don't use $PWD, use `pwd`"), 61 (r'\$PWD', "don't use $PWD, use `pwd`"),
62 (r'[^\n]\Z', "no trailing newline"), 62 (r'[^\n]\Z', "no trailing newline"),
63 (r'export.*=', "don't export and assign at once"), 63 (r'export.*=', "don't export and assign at once"),
64 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"), 64 ('^([^"\']|("[^"]*")|(\'[^\']*\'))*\\^', "^ must be quoted"),
65 (r'^source\b', "don't use 'source', use '.'"), 65 (r'^source\b', "don't use 'source', use '.'"),
66 (r'touch -d', "don't use 'touch -d', use 'touch -t' instead"),
66 ] 67 ]
67 68
68 testfilters = [ 69 testfilters = [
69 (r"( *)(#([^\n]*\S)?)", repcomment), 70 (r"( *)(#([^\n]*\S)?)", repcomment),
70 (r"<<(\S+)((.|\n)*?\n\1)", rephere), 71 (r"<<(\S+)((.|\n)*?\n\1)", rephere),