Fixed shebang kernel limitation with virtualenv during test run (https://github.com/pypa/virtualenv/issues/596)
Change-Id: Id5925d0f5cd89e3d71454465e971db0d09332613
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index b4fef32..8b7a668 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -44,9 +44,9 @@
log_info "Setting up Python virtualenv"
virtualenv $VENV_DIR
source ${VENV_DIR}/bin/activate
- pip install salt${PIP_SALT_VERSION}
+ python -m pip install salt${PIP_SALT_VERSION}
if [[ -f ${CURDIR}/test-requirements.txt ]]; then
- pip install -r ${CURDIR}/test-requirements.txt
+ python -m pip install -r ${CURDIR}/test-requirements.txt
fi
}
@@ -147,7 +147,7 @@
salt_run() {
[ -e ${VENV_DIR}/bin/activate ] && source ${VENV_DIR}/bin/activate
- salt-call ${SALT_OPTS} $*
+ python $(which salt-call) ${SALT_OPTS} $*
}
prepare() {