Improve test runner

This commit is contained in:
nolash 2021-10-24 16:11:54 +02:00
parent 06530e3ffa
commit 7d27faa960
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -2,12 +2,13 @@
set -e
set -x
#for f in `ls tests/*.py`; do
#python $f
# if [ $? -gt 0 ]; then
# exit 1
# fi
#done
pytest -s -v -x ./tests
default_pythonpath=$PYTHONPATH:.
export PYTHONPATH=${default_pythonpath:-.}
for f in `ls tests/*.py`; do
python $f
if [ $? -gt 0 ]; then
exit 1
fi
done
set +x
set +e