neutron/tools/pip_install_src_modules.sh
Brian Haley 6842465260 Stop testing python 2
Since it's no longer supported past Train, lets stop
running the tests.

Updated docs and made some pep8 code tweaks as well.

Change-Id: I1c171ab906a3b4c66558163ad26947ebf710a276
2019-10-25 18:50:08 +00:00

26 lines
651 B
Bash
Executable File

#!/bin/bash
# For neutron unit tests, you can define git repos containing modules
# that you want to use to override the requirements-based packages.
#
# Why, you ask? Because you made changes to neutron-lib, and you want
# run the unit tests together. E.g.:
#
# env TOX_ENV_SRC_MODULES="$HOME/src/neutron-lib" tox -e py37
toxinidir="$1"
if [ -z "$TOX_ENV_SRC_MODULES" ]; then
exit 0
fi
for repo in $TOX_ENV_SRC_MODULES; do
d="${toxinidir}/${repo}"
if [ ! -d "$d" ]; then
echo "tox_env_src: error: no directory found at $d"
continue
fi
echo "tox_env_src: pip installing from $d"
pip install -e "$d"
done