diff options
author | Linda Wang <wangwulin@huawei.com> | 2017-11-30 02:31:17 +0000 |
---|---|---|
committer | Linda Wang <wangwulin@huawei.com> | 2017-11-30 07:33:31 +0000 |
commit | 8b21d5190469230644506ec561762d452a46b933 (patch) | |
tree | a91f9083878a657915df8d84f93aba0eb5c1f7da /functest/ci/run_tests.py | |
parent | e63b856182cb65f1943f83b672e7d9e8b9f3dc3e (diff) |
Stop updating test_db_url in config file by env var
If TEST_DB_URL is declared in env variable, use it
before considering the var in config file.
Change-Id: I656ad8765287c48d60af7ab88b421805d76fb231
Signed-off-by: Linda Wang <wangwulin@huawei.com>
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): |