glance_store/tools/with_venv.sh
Brian D. Elliott 5bfe34f744 Add a run_tests.sh
An alternative to running tox, similar to other repos like glance and
nova.

Change-Id: I0dbab69dbfed2186b0c45036718081abed56d689
2014-09-17 16:05:17 +00:00

8 lines
218 B
Bash
Executable File

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