浏览代码

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

Change-Id: Ib5d56448772f4fef21f38573e5640534316e884d
master
Jakub Josef 6 年前
父节点
当前提交
b9539d6eae
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      tests/run_tests.sh

+ 2
- 2
tests/run_tests.sh 查看文件

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() {

正在加载...
取消
保存