anchor/tools/with_venv.sh
Priti Desai fa25352ce7 Adding run_tests.sh following OpenStack Standards
Fixing python formatting issues which were failing with
run_tests.sh

Added following files from an OpenStack project (Keystone):
run_tests.sh
tools/colorizer.py
tools/install_venv.py
tools/install_venv_common.py
tools/install_venv_common.pyc
tools/with_venv.sh

Replaced Keystone with Anchor (%s/Keystone/Anchor/g)

Run ./run_tests.sh like any other OpenStack project to just run
unit tests.

Change-Id: I75ebea826cee651e0d691a209ca8f54eddbfeaf8
2015-02-17 12:29:04 -08: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 && "$@"