There was an error while loading. Please reload this page.
1 parent e1a094d commit 697fb0cCopy full SHA for 697fb0c
1 file changed
contrib/run-tests
@@ -11,10 +11,15 @@ ARGS="$@"
11
12
for BIN in python2 python3; do
13
if command -v ${BIN} >/dev/null 2>&1; then
14
- echo "INFO: Running tests for ${BIN}"
+ echo "INFO: Activating environment for ${BIN}"
15
. ./contrib/activate-dev-env ${BIN}
16
- python setup.py test ${ARGS}
17
- echo "INFO: Tests completed for ${BIN}"
+ if [ -z ${VIRTUAL_ENV} ]; then
+ echo "WARN: Virtual Environment not active, skipping tests."
18
+ else
19
+ echo "INFO: Running tests for ${BIN}"
20
+ python setup.py test ${ARGS}
21
+ echo "INFO: Tests completed for ${BIN}"
22
+ fi
23
else
24
echo "INFO: ${BIN} not found, skipping tests."
25
fi
0 commit comments