Skip to content

Commit

Permalink
run_tests should try to execute tests without venv
Browse files Browse the repository at this point in the history
  • Loading branch information
redvox committed Jan 3, 2024
1 parent 5943542 commit ff97d7a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run_tests.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit ff97d7a

Please sign in to comment.