Merge "py3: Switch to using Python 3 for rocky or later"

This commit is contained in:
Zuul 2018-10-09 09:55:59 +00:00 committed by Gerrit Code Review
commit 4b843bb477
2 changed files with 28 additions and 1 deletions

View File

@ -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

View File

@ -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!)