Mercurial > hg
view tests/test-check-code @ 10720:fbcccf9ec58f
check-code: add a return value to checkfile function
The checkfile function returns True if the file is correct, False
otherwise.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Wed, 17 Mar 2010 10:51:26 +0100 |
parents | 83dce0f817f4 |
children | c4fb2103e734 |
line wrap: on
line source
#!/bin/sh #cd `dirname $0` cat > correct.py <<EOF def toto(arg1, arg2): del arg2 return (5 + 6, 9) EOF cat > wrong.py <<EOF def toto( arg1, arg2): del(arg2) return ( 5+6, 9) EOF check_code=`dirname $0`/../contrib/check-code.py ${check_code} ./wrong.py ./correct.py