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:
parent
16092ca1f8
commit
6ef29f0018
12
test.sh
12
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
|
||||
|
|
Loading…
Reference in New Issue