From d67e93238a108dcc90b039ed328d424d822fdc76 Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Tue, 1 May 2018 13:28:59 +0200 Subject: [PATCH] Debian: using packages for installing Tempest Puppet-openstack attempst to install puppet using: "python setup.py isntall" Though in Debian, setuptools isn't even installed for Python 2, so it fails. As the comment in run_tests.sh mentioned the use of setuptools and pip is temporary, this patch switches to the packaged version of tempest, testr and os-testr, using apt-get install instead of pip. Change-Id: I6a2a04dd0e0f2d7d89da538a53af420d52dcfd20 --- run_tests.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 49b037532..07f09adf7 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -249,8 +249,13 @@ $SUDO chown -R "$(id -u):$(id -g)" /tmp/openstack/tempest/ # install from source now on ubuntu until packaged if uses_debs; then - cd /tmp/openstack/tempest-horizon; $SUDO python setup.py install - $SUDO pip install -U stestr os-testr + cd /tmp/openstack/tempest-horizon; + if [ $(lsb_release --id -s) = "Debian" ] ; then + $SUDO apt-get install -y tempest python3-stestr python3-os-testr python3-tempest + else + $SUDO python setup.py install + $SUDO pip install -U stestr os-testr + fi fi set +e