tempest/tools/with_venv.sh
Masayuki Igawa e1a5083ea1
Make bash shebangs through /usr/bin/env
This commit makes bash shebangs through /usr/bin/env. The originals work
correctly. However, it could be more flexible through /usr/bin/env. And
we already have a same thing in tools/tox_install.sh. So this commit
makes them consistent, too.

Change-Id: I35a6940cbd95c3b0f0d0f6391584b826e4de2ce5
2017-04-11 18:46:16 +09:00

7 lines
206 B
Bash
Executable File

#!/usr/bin/env bash
TOOLS_PATH=${TOOLS_PATH:-$(dirname $0)/../}
VENV_PATH=${VENV_PATH:-${TOOLS_PATH}}
VENV_DIR=${VENV_DIR:-/.venv}
VENV=${VENV:-${VENV_PATH}/${VENV_DIR}}
source ${VENV}/bin/activate && "$@"