diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-11-30 14:11:52 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-11-30 14:11:52 +0000 |
commit | 4047bc91468525ca4f46c63d74dbe9fc9521e49f (patch) | |
tree | 12fadce8948e109188a971c9a9403ba1fd03b7ad /functest/ci/run_tests.py | |
parent | c38d87b9a57466a5663395926a576a87623eb2f4 (diff) | |
parent | 8b21d5190469230644506ec561762d452a46b933 (diff) |
Merge "Stop updating test_db_url in config file by env var"
Diffstat (limited to 'functest/ci/run_tests.py')
-rw-r--r-- | functest/ci/run_tests.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/functest/ci/run_tests.py b/functest/ci/run_tests.py index 03d62d99..d476bded 100644 --- a/functest/ci/run_tests.py +++ b/functest/ci/run_tests.py @@ -93,9 +93,6 @@ class Runner(object): if pod_arch and pod_arch in arch_filter: Runner.patch_file(CONFIG_AARCH64_PATCH_PATH) - if "TEST_DB_URL" in os.environ: - Runner.update_db_url() - @staticmethod def patch_file(patch_file_path): logger.debug('Updating file: %s', patch_file_path) @@ -115,16 +112,6 @@ class Runner(object): f.write(yaml.dump(new_functest_yaml, default_style='"')) @staticmethod - def update_db_url(): - with open(CONFIG_FUNCTEST_PATH) as f: - functest_yaml = yaml.safe_load(f) - - with open(CONFIG_FUNCTEST_PATH, "w") as f: - functest_yaml["results"]["test_db_url"] = os.environ.get( - 'TEST_DB_URL') - f.write(yaml.dump(functest_yaml, default_style='"')) - - @staticmethod def source_rc_file(): rc_file = CONST.__getattribute__('openstack_creds') if not os.path.isfile(rc_file): |