Add tempest section in rally.conf 17/59717/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Wed, 11 Jul 2018 18:32:08 +0000 (20:32 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Wed, 11 Jul 2018 18:35:31 +0000 (20:35 +0200)
It completes the previous patch [1][2].

[1] https://gerrit.opnfv.org/gerrit/#/c/59681/
[2] https://build.opnfv.org/ci/view/functest/job/functest-compass-virtual-daily-master/555/console

Change-Id: I93ad9db2c7a8a0691fed8bf58f5e21d8f3dc9c57
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit bf39607ee1128f6a9b46c37c0a8ac1e582d39ea5)

functest/opnfv_tests/openstack/tempest/tempest.py

index 911c8ca..818b6cc 100644 (file)
@@ -262,6 +262,7 @@ class TempestCommon(singlevm.VmReady1):
         """Set image name as tempest img_name_regex"""
         rconfig = configparser.RawConfigParser()
         rconfig.read(rally_conf)
+        rconfig.add_section('tempest')
         rconfig.set('tempest', 'img_name_regex', '^{}$'.format(
             self.image.name))
         with open(rally_conf, 'wb') as config_file: