Skip to content

Commit b3d1f28

Browse files
author
David Moreau-Simard
committed
Don't assume pip is installed in run_tests.sh
In I1e1a4f6afd5649f16c1de56006f3aa719903f5e4 we replaced setup.py by pip. Since pip is installed by default in the gate it didn't cause problems for the jobs there. However, on CentOS systems outside of the gate, pip is not installed by default and is unavailable in base OS repositories -- only in EPEL. This patch ensures pip is installed. Change-Id: I7fb365abc72c27659935b9d90008341e3352eacd
1 parent 37ff273 commit b3d1f28

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

run_tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ $SUDO yum -y install puppet \
7777
policycoreutils \
7878
"@Development Tools"
7979

80+
# Don't assume pip is installed
81+
which pip || easy_install pip
82+
8083
# TO-DO: Packstack should handle Hiera and Puppet configuration, so that it works
8184
# no matter the environment
8285
$SUDO su -c 'cat > /etc/puppet/puppet.conf <<EOF

0 commit comments

Comments
 (0)