From f4e49ae7753901336814ccbd26003ac229440f5b Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Wed, 20 Dec 2017 19:19:20 +0100 Subject: Remove logger_test_results MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It was only called in Feature which the result is already printed (see __str__()). It also eases moving Feature to xtesting as it breaks the link to functest_utils. Change-Id: Ib72d651dc7d89598704ff4d52d8b1ecb2bdade5b Signed-off-by: Cédric Ollivier --- functest/utils/functest_utils.py | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'functest/utils/functest_utils.py') diff --git a/functest/utils/functest_utils.py b/functest/utils/functest_utils.py index 6c502ebc5..6d0b345d5 100644 --- a/functest/utils/functest_utils.py +++ b/functest/utils/functest_utils.py @@ -90,39 +90,6 @@ def get_version(): return "unknown" -def logger_test_results(project, case_name, status, details): - """ - Format test case results for the logger - """ - pod_name = CONST.__getattribute__('NODE_NAME') - scenario = CONST.__getattribute__('DEPLOY_SCENARIO') - version = get_version() - build_tag = CONST.__getattribute__('BUILD_TAG') - db_url = CONST.__getattribute__("results_test_db_url") - - logger.info( - "\n" - "****************************************\n" - "\t %(p)s/%(n)s results \n\n" - "****************************************\n" - "DB:\t%(db)s\n" - "pod:\t%(pod)s\n" - "version:\t%(v)s\n" - "scenario:\t%(s)s\n" - "status:\t%(c)s\n" - "build tag:\t%(b)s\n" - "details:\t%(d)s\n" - % {'p': project, - 'n': case_name, - 'db': db_url, - 'pod': pod_name, - 'v': version, - 's': scenario, - 'c': status, - 'b': build_tag, - 'd': details}) - - @decorators.can_dump_request_to_file def push_results_to_db(project, case_name, start_date, stop_date, result, details): -- cgit 1.2.3-korg