From ff97d7ac990b241a0dafe507bc3d0bdf4bf18da4 Mon Sep 17 00:00:00 2001 From: Jens Gohl Date: Wed, 3 Jan 2024 14:19:51 +0100 Subject: [PATCH] run_tests should try to execute tests without venv --- run_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/run_tests.sh b/run_tests.sh index 7e02e48..9835b8b 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -1,3 +1,10 @@ #!/usr/bin/env bash cd tests || exit -../venv/bin/nosetests + +if [ -d ../venv ]; then + echo "Virtual environment found. Using nose2 from virtual environment to run tests" + ../venv/bin/nosetests +else + echo "Virtual environment not found. Trying system wide nose2 to run tests" + nosetests +fi