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/utils/functest_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'functest/utils/functest_utils.py') diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py index f07f59d7..bbb6b631 100644 --- a/functest/utils/functest_utils.py +++ b/functest/utils/functest_utils.py @@ -130,7 +130,10 @@ def push_results_to_db(project, case_name, POST results to the Result target DB """ # Retrieve params from CI and conf - url = CONST.__getattribute__("results_test_db_url") + if (hasattr(CONST, 'TEST_DB_URL')): + url = CONST.__getattribute__('TEST_DB_URL') + else: + url = CONST.__getattribute__("results_test_db_url") try: installer = os.environ['INSTALLER_TYPE'] -- cgit 1.2.3-korg