Import run_cross_tests.sh from oslo-incubator
Replace the local version of run_cross_tests.sh with the version in oslo-incubator. Depends on https://review.openstack.org/#/c/83411/ and https://review.openstack.org/#/c/83412/ Change-Id: I3d3e25f92ab6337432b54967a381662f32902a6d
This commit is contained in:
7
openstack-common.conf
Normal file
7
openstack-common.conf
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
|
||||||
|
# The list of modules to copy from oslo-incubator.git
|
||||||
|
script = tools/run_cross_tests.sh
|
||||||
|
|
||||||
|
# The base module to hold the copy of openstack.common
|
||||||
|
base=oslotest
|
||||||
@@ -13,13 +13,15 @@ venv="$2"
|
|||||||
|
|
||||||
tox_envbin=$project_dir/.tox/$venv/bin
|
tox_envbin=$project_dir/.tox/$venv/bin
|
||||||
|
|
||||||
|
our_name=$(python setup.py --name)
|
||||||
|
|
||||||
# Replace the pip-installed package with the version in our source
|
# Replace the pip-installed package with the version in our source
|
||||||
# tree. Look to see if oslotest is already installed before trying to
|
# tree. Look to see if we are already installed before trying to
|
||||||
# uninstall it, to avoid failures from packages that do not use it
|
# uninstall ourselves, to avoid failures from packages that do not use us
|
||||||
# yet.
|
# yet.
|
||||||
if $tox_envbin/pip freeze | grep -q oslotest
|
if $tox_envbin/pip freeze | grep -q $our_name
|
||||||
then
|
then
|
||||||
$tox_envbin/pip uninstall -y oslotest
|
$tox_envbin/pip uninstall -y $our_name
|
||||||
fi
|
fi
|
||||||
$tox_envbin/pip install -U .
|
$tox_envbin/pip install -U .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user