From 8b21d5190469230644506ec561762d452a46b933 Mon Sep 17 00:00:00 2001 From: Linda Wang Date: Thu, 30 Nov 2017 02:31:17 +0000 Subject: 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 --- functest/ci/run_tests.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'functest/ci') 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) @@ -114,16 +111,6 @@ class Runner(object): with open(CONFIG_FUNCTEST_PATH, "w") as f: 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') -- cgit 1.2.3-korg