Expect python3 packages on CentOS8/Fedora
... because these use python3 instead of python2. Change-Id: I3b20148fa6ef94c68e6bed053eb401a8f504f51b
This commit is contained in:
parent
e0eb3ef4cb
commit
05fbb48270
@ -436,21 +436,47 @@ describe 'tempest' do
|
|||||||
:pip_command => 'pip3',
|
:pip_command => 'pip3',
|
||||||
:pyvers => '3' }
|
:pyvers => '3' }
|
||||||
when 'RedHat'
|
when 'RedHat'
|
||||||
{ :dev_packages => ['python-devel',
|
if facts[:operatingsystem] == 'Fedora'
|
||||||
'libxslt-devel',
|
{ :dev_packages => ['python-devel',
|
||||||
'libxml2-devel',
|
'libxslt-devel',
|
||||||
'openssl-devel',
|
'libxml2-devel',
|
||||||
'libffi-devel',
|
'openssl-devel',
|
||||||
'patch',
|
'libffi-devel',
|
||||||
'gcc'],
|
'patch',
|
||||||
:package_name => 'openstack-tempest',
|
'gcc'],
|
||||||
:pip_command => 'pip',
|
:package_name => 'openstack-tempest',
|
||||||
:pyvers => '' }
|
:pip_command => 'pip3',
|
||||||
|
:pyvers => '3' }
|
||||||
|
else
|
||||||
|
if facts[:operatingsystemmajrelease] > '7'
|
||||||
|
{ :dev_packages => ['python3-devel',
|
||||||
|
'libxslt-devel',
|
||||||
|
'libxml2-devel',
|
||||||
|
'openssl-devel',
|
||||||
|
'libffi-devel',
|
||||||
|
'patch',
|
||||||
|
'gcc'],
|
||||||
|
:package_name => 'openstack-tempest',
|
||||||
|
:pip_command => 'pip3',
|
||||||
|
:pyvers => '3' }
|
||||||
|
else
|
||||||
|
{ :dev_packages => ['python-devel',
|
||||||
|
'libxslt-devel',
|
||||||
|
'libxml2-devel',
|
||||||
|
'openssl-devel',
|
||||||
|
'libffi-devel',
|
||||||
|
'patch',
|
||||||
|
'gcc'],
|
||||||
|
:package_name => 'openstack-tempest',
|
||||||
|
:pip_command => 'pip',
|
||||||
|
:pyvers => '' }
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like 'tempest'
|
it_behaves_like 'tempest'
|
||||||
it_behaves_like 'tempest with plugins packages'
|
it_behaves_like 'tempest with plugins packages'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user