r1014@mallarme: misc | 2006-07-05 23:57:46 +0200

- improve test.sh, exit when a test fail, and try to launch rpmlint ( basic syntax checking )
 


git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1229 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Michael Scherer 2006-07-06 12:41:17 +00:00 committed by Ville Skyttä
parent 16092ca1f8
commit 6ef29f0018
1 changed files with 8 additions and 4 deletions

12
test.sh
View File

@ -1,9 +1,13 @@
export PYTHONPATH=$(pwd)
export TESTPATH="$(pwd)/test/"
for i in $TESTPATH/test.*.py; do
echo $i
python $i
#if [ -n $? ]; then
# exit $?
#fi;
RET=$?
if [ $RET -ne 0 ]; then
exit $RET
fi;
done;
echo "Check if rpmlint have no errors"
python ./rpmlint.py -C $(pwd) test/*rpm >/dev/null