Files
manila-ui/tools/with_venv.sh
Gary W. Smith 436d6b2cac Enable unit tests to run standalone
Enable unit tests to be run standalane; that is, without having a
local copy of the horizon source.  This is primarly intended for use in
automated builds.  The approach, taken from tuskar-ui, is to add an
entry in test-requirements.txt that refers to a source tarball of
horizon which is expanded into the virtual environment, permitting
references to horizon and openstack_dashboard to resolve correctly.

Add additional tooling to support running tests and building virtual
environments to mirror what is done in horizon.
2015-04-20 15:08:53 -07: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 && "$@"