Skip to content

Commit

Permalink
Fixed shebang kernel limitation with virtualenv during test run (pypa…
Browse files Browse the repository at this point in the history
…/virtualenv#596)

Change-Id: I5194521dfab2e0be70660224c78b8b1711457ad7
  • Loading branch information
jakubjosef committed Feb 8, 2018
1 parent 20bc27a commit 80e8f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ setup_virtualenv() {
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}
}

setup_mock_bin() {
Expand Down Expand Up @@ -125,7 +125,7 @@ clean() {

salt_run() {
[ -e ${VENV_DIR}/bin/activate ] && source ${VENV_DIR}/bin/activate
salt-call ${SALT_OPTS} $*
python $(which salt-call) ${SALT_OPTS} $*
}

prepare() {
Expand Down

0 comments on commit 80e8f0e

Please sign in to comment.