Improve testrunner

This commit is contained in:
nolash 2021-10-24 16:10:41 +02:00
parent 08640e8218
commit ed39151908
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

14
python/run_tests.sh Normal file
View File

@ -0,0 +1,14 @@
#!/bin/bash
set -e
set -x
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