py3: Switch to using Python 3 for rocky or later
Switch package install to Python 3 for OpenStack Rocky or later. Change-Id: Idb4acd39d8e9eed015b914706b7e3d15722999ad
This commit is contained in:
parent
ec3c86bac2
commit
e7f7bbf410
|
@ -490,3 +490,30 @@ class TempestCharm(charm.OpenStackCharm):
|
|||
action_info = self.parse_tempest_log(logfile)
|
||||
action_info['tempest-logfile'] = logfile
|
||||
hookenv.action_set(action_info)
|
||||
|
||||
|
||||
class TempestCharmRocky(TempestCharm):
|
||||
|
||||
release = 'rocky'
|
||||
|
||||
packages = [
|
||||
'git', 'testrepository', 'subunit', 'python3-nose', 'python3-lxml',
|
||||
'python3-boto', 'python3-junitxml', 'python3-subunit',
|
||||
'python3-testresources', 'python3-oslotest', 'python3-stevedore',
|
||||
'python3-cinderclient', 'python3-glanceclient', 'python3-heatclient',
|
||||
'python3-keystoneclient', 'python3-neutronclient',
|
||||
'python3-novaclient', 'python3-swiftclient',
|
||||
'python3-ceilometerclient', 'openvswitch-test', 'openvswitch-common',
|
||||
'libffi-dev', 'libssl-dev', 'python3-dev', 'python3-cffi'
|
||||
]
|
||||
|
||||
purge_packages = [
|
||||
'python-nose', 'python-lxml', 'python-boto', 'python-junitxml',
|
||||
'python-subunit', 'python-testresources', 'python-oslotest',
|
||||
'python-stevedore', 'python-cinderclient', 'python-glanceclient',
|
||||
'python-heatclient', 'python-keystoneclient', 'python-neutronclient',
|
||||
'python-novaclient', 'python-swiftclient', 'python-ceilometerclient',
|
||||
'python-dev', 'python-cffi'
|
||||
]
|
||||
|
||||
python_version = 3
|
||||
|
|
|
@ -35,7 +35,7 @@ commands =
|
|||
# Run a specific test as an Amulet smoke test (expected to always pass)
|
||||
basepython = python2.7
|
||||
commands =
|
||||
bundletester -vl DEBUG -r json -o func-results.json gate-basic-bionic-queens --no-destroy
|
||||
bundletester -vl DEBUG -r json -o func-results.json gate-basic-bionic-rocky --no-destroy
|
||||
|
||||
[testenv:func27-dfs]
|
||||
# Run all deploy-from-source tests which are +x (may not always pass!)
|
||||
|
|
Loading…
Reference in New Issue