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:
Doug Hellmann 2014-03-27 08:02:02 -07:00
parent bf3b180f48
commit 588fba7bde
2 changed files with 13 additions and 4 deletions

7
openstack-common.conf Normal file
View 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

View File

@ -13,13 +13,15 @@ venv="$2"
tox_envbin=$project_dir/.tox/$venv/bin
our_name=$(python setup.py --name)
# Replace the pip-installed package with the version in our source
# tree. Look to see if oslotest is already installed before trying to
# uninstall it, to avoid failures from packages that do not use it
# tree. Look to see if we are already installed before trying to
# uninstall ourselves, to avoid failures from packages that do not use us
# yet.
if $tox_envbin/pip freeze | grep -q oslotest
if $tox_envbin/pip freeze | grep -q $our_name
then
$tox_envbin/pip uninstall -y oslotest
$tox_envbin/pip uninstall -y $our_name
fi
$tox_envbin/pip install -U .