diff options
author | valentin boucher <valentin.boucher@orange.com> | 2016-08-04 08:22:56 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-08-04 08:22:56 +0000 |
commit | 7567f9a46e01e9c88e8cab4a5b634f4f91fb31a6 (patch) | |
tree | 6338c836020cd84a365b16b3eba6bb832bd7440d /testcases/OpenStack/tempest | |
parent | 8ff41c55c650e45cc0464a89c3c26ccc54f2a15c (diff) | |
parent | 89077063cf7357727fbcb4b58c852784812405ee (diff) |
Merge "Re-generating tempest.conf file before starting tests"
Diffstat (limited to 'testcases/OpenStack/tempest')
-rwxr-xr-x | testcases/OpenStack/tempest/run_tempest.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testcases/OpenStack/tempest/run_tempest.py b/testcases/OpenStack/tempest/run_tempest.py index 53a70b799..4a8a3d066 100755 --- a/testcases/OpenStack/tempest/run_tempest.py +++ b/testcases/OpenStack/tempest/run_tempest.py @@ -176,12 +176,16 @@ def configure_tempest(deployment_dir): Add/update needed parameters into tempest.conf file generated by Rally """ - logger.debug("Generating tempest.conf file...") + tempest_conf_file = deployment_dir + "/tempest.conf" + if os.path.isfile(tempest_conf_file): + logger.debug("Deleting old tempest.conf file...") + os.remove(tempest_conf_file) + + logger.debug("Generating new tempest.conf file...") cmd = "rally verify genconfig" ft_utils.execute_command(cmd, logger) logger.debug("Finding tempest.conf file...") - tempest_conf_file = deployment_dir + "/tempest.conf" if not os.path.isfile(tempest_conf_file): logger.error("Tempest configuration file %s NOT found." % tempest_conf_file) |