22 lines
599 B
Bash
Executable File
22 lines
599 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
set -e
|
|
|
|
envdir=$1
|
|
|
|
# The source for the client library is checked out by pip because of
|
|
# the deps listed in tox.ini, so we just need to move into that
|
|
# directory.
|
|
# NOTE(tonyb): tools/tox_install.sh will place the code in 1 of 2 paths
|
|
# depending on whether zuul-cloner is used, so try each possible location
|
|
cd $envdir/src/python-openstackclient/ || \
|
|
cd $envdir/src/openstack/python-openstackclient/
|
|
|
|
pip install -r test-requirements.txt
|
|
|
|
# Force a known hash seed value to avoid sorting errors from tox
|
|
# giving us a random one.
|
|
export PYTHONHASHSEED=0
|
|
|
|
python setup.py testr
|