From ed391519088e2e2c42a501a5791f12250f10ff53 Mon Sep 17 00:00:00 2001 From: nolash Date: Sun, 24 Oct 2021 16:10:41 +0200 Subject: [PATCH] Improve testrunner --- python/run_tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 python/run_tests.sh diff --git a/python/run_tests.sh b/python/run_tests.sh new file mode 100644 index 0000000..fed6f11 --- /dev/null +++ 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