Fix tests for pip 10
On CentOS, the python-ipaddress comes with the python2-pip package which comes installed on the test nodes. Uninstall it (and consequently the distro pip package) so that the new pip can do the right thing. Change-Id: I15fabb2bc2e1645c9045603575dfa52957398a2d
This commit is contained in:
parent
bdfb4e7591
commit
8e1d497bc5
|
@ -18,6 +18,12 @@ EOF
|
|||
shell("if [ ! -f /etc/pip.conf ] ; then echo '#{pip_conf}' > /etc/pip.conf ; fi")
|
||||
# Block pypi.python.org so we know the mirror is working
|
||||
shell("iptables -A OUTPUT -d pypi.python.org -j DROP")
|
||||
|
||||
# Remove the python-ipaddress distro package so that pip 10 won't fail to
|
||||
# install shade
|
||||
if os[:family] == 'redhat'
|
||||
shell('yum remove python-ipaddress -y')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue