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/utils/functest_utils.py | |
parent | c38d87b9a57466a5663395926a576a87623eb2f4 (diff) | |
parent | 8b21d5190469230644506ec561762d452a46b933 (diff) |
Merge "Stop updating test_db_url in config file by env var"
Diffstat (limited to 'functest/utils/functest_utils.py')
-rw-r--r-- | functest/utils/functest_utils.py | 5 |
1 files changed, 4 insertions, 1 deletions
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'] |