Skip to content

Commit

Permalink
Merge pull request SUSE#190 from SUSE/wip-bootstrap-fixes
Browse files Browse the repository at this point in the history
bootstrap: fixes for recent teuthologies on recent openSUSEs
  • Loading branch information
smithfarm authored Feb 20, 2019
2 parents a70ac0c + f5d8a0f commit f4aa41c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
17 changes: 9 additions & 8 deletions bootstrap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -e
export LC_ALL=C
if [ $# -eq 0 ]; then
Expand All @@ -14,8 +14,9 @@ fi

case "$(uname -s)" in
Linux)
case "$(lsb_release --id --short)" in
Ubuntu|Debian)
source /etc/os-release
case $ID in
debian|ubuntu|devuan)
for package in qemu-utils python-dev libssl-dev python-pip python-virtualenv libev-dev libvirt-dev libmysqlclient-dev libffi-dev libyaml-dev ; do
if [ "$(dpkg --status -- $package|sed -n 's/^Status: //p')" != "install ok installed" ]; then
# add a space after old values
Expand All @@ -35,7 +36,7 @@ Linux)
fi
fi
;;
RedHatEnterpriseWorkstation|RedHatEnterpriseServer)
centos|rhel|ol|virtuozzo)
for package in python-pip python-virtualenv mariadb-devel libev-devel libvirt-devel libffi-devel; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
Expand All @@ -54,7 +55,7 @@ Linux)
fi
fi
;;
Fedora)
fedora)
for package in python-pip python-virtualenv libev-devel libvirt-devel community-mysql-devel libffi-devel; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
Expand All @@ -78,8 +79,8 @@ Linux)
fi
fi
;;
"openSUSE project"|"SUSE LINUX"|"openSUSE")
for package in python-pip python-devel python-virtualenv libev-devel libmysqlclient-devel libffi-devel; do
opensuse*|suse|sles)
for package in gcc libmysqld-devel zlib-devel python-pip python-devel python-virtualenv libev-devel libmysqlclient-devel libffi-devel; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
if [ "$(rpm -q --whatprovides $package)" == "no package provides $package" ]; then
missing="${missing:+$missing }$package"
Expand Down Expand Up @@ -127,7 +128,7 @@ if [ -z "$NO_CLOBBER" ] || [ ! -e ./virtualenv ]; then
if ! which virtualenv > /dev/null; then
pip install virtualenv
fi
virtualenv --setuptools virtualenv
virtualenv --python=python2.7 --setuptools virtualenv
fi

# Upgrade pip first
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ passenv = HOME
sitepackages=True
deps=
-r{toxinidir}/requirements.txt
pytest
pytest==3.8.2
mock
fudge
nose
Expand Down

0 comments on commit f4aa41c

Please sign in to comment.