Expect python3 packages on CentOS8/Fedora

... because these use python3 instead of python2.

Change-Id: I3b20148fa6ef94c68e6bed053eb401a8f504f51b
This commit is contained in:
Takashi Kajinami 2020-04-01 11:45:23 +09:00
parent e0eb3ef4cb
commit 05fbb48270

View File

@ -436,21 +436,47 @@ describe 'tempest' do
:pip_command => 'pip3',
:pyvers => '3' }
when 'RedHat'
{ :dev_packages => ['python-devel',
'libxslt-devel',
'libxml2-devel',
'openssl-devel',
'libffi-devel',
'patch',
'gcc'],
:package_name => 'openstack-tempest',
:pip_command => 'pip',
:pyvers => '' }
if facts[:operatingsystem] == 'Fedora'
{ :dev_packages => ['python-devel',
'libxslt-devel',
'libxml2-devel',
'openssl-devel',
'libffi-devel',
'patch',
'gcc'],
:package_name => 'openstack-tempest',
: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
it_behaves_like 'tempest'
it_behaves_like 'tempest with plugins packages'
end
end
end
end