Browse Source

Fixed shebang kernel limitation with virtualenv during test run (https://github.com/pypa/virtualenv/issues/596)

Change-Id: I268199df924a742f14d1c965b96eb7c5ef30d70a
master
Jakub Josef 6 years ago
parent
commit
d1e9ae8d50
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tests/run_tests.sh

+ 2
- 2
tests/run_tests.sh View File

log_info "Setting up Python virtualenv" log_info "Setting up Python virtualenv"
virtualenv $VENV_DIR virtualenv $VENV_DIR
source ${VENV_DIR}/bin/activate source ${VENV_DIR}/bin/activate
pip install salt${PIP_SALT_VERSION}
python -m pip install salt${PIP_SALT_VERSION}
} }


setup_mock_bin() { setup_mock_bin() {


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


prepare() { prepare() {

Loading…
Cancel
Save