commit ed391519088e2e2c42a501a5791f12250f10ff53 parent 08640e82188edb6954ed2d0bd72cccc21845ce04 Author: nolash <dev@holbrook.no> Date: Sun, 24 Oct 2021 16:10:41 +0200 Improve testrunner Diffstat:
A | python/run_tests.sh | | | 14 | ++++++++++++++ |
1 file changed, 14 insertions(+), 0 deletions(-)
diff --git a/python/run_tests.sh b/python/run_tests.sh @@ -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