X-Git-Url: https://gerrit.mcp.mirantis.com/gitweb?p=salt-formulas%2Felasticsearch.git;a=blobdiff_plain;f=tests%2Frun_tests.sh;h=0ab7d8199f1bc933d81dc3adcce70142740d25b7;hp=4ee4e0f3a9fc82b726123ccead0110cd0257877f;hb=1657066a170832505ff127e26384feba4ddbe476;hpb=46e050bcc10bbc4ec32d381fadfd7ac03a5fad06 diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 4ee4e0f..0ab7d81 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -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} 'msgpack<1' } setup_mock_bin() { @@ -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() {