From 6ef29f0018b72082198d17788329c8ecc0b17b33 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 6 Jul 2006 12:41:17 +0000 Subject: [PATCH] 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 --- test.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index 561c4d68..85f2603e 100644 --- a/test.sh +++ b/test.sh @@ -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