From 8cfa8d15a572cbae8bd46dae2a19f9b764684a12 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Thu, 11 May 2017 13:01:16 +0200 Subject: Switch from generate_report to PrettyTable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit run_tests.py now relies on PrettyTable as most of the openstack clients. generate_report.py and its related unit tests are simply removed. It sets padding_width=5 in testcase.py too to conform with run_tests.py. Now report is printed in every case. Change-Id: Id9ce93f984503f25d6a2150482f397853fa3dd64 Signed-off-by: Cédric Ollivier --- functest/core/feature.py | 1 - functest/core/testcase.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'functest/core') diff --git a/functest/core/feature.py b/functest/core/feature.py index 8563c925..140c9bb2 100644 --- a/functest/core/feature.py +++ b/functest/core/feature.py @@ -83,7 +83,6 @@ class Feature(base.TestCase): ft_utils.logger_test_results( self.project_name, self.case_name, self.result, self.details) - self.__logger.info("%s %s", self.project_name, self.result) except Exception: # pylint: disable=broad-except self.__logger.exception("%s FAILED", self.project_name) self.__logger.info("Test result is stored in '%s'", self.result_file) diff --git a/functest/core/testcase.py b/functest/core/testcase.py index 317c4f59..d8b63ef2 100644 --- a/functest/core/testcase.py +++ b/functest/core/testcase.py @@ -52,7 +52,7 @@ class TestCase(object): result = 'PASS' if(self.is_successful( ) == TestCase.EX_OK) else 'FAIL' msg = prettytable.PrettyTable( - header_style='upper', + header_style='upper', padding_width=5, field_names=['test case', 'project', 'duration', 'result']) msg.add_row([self.case_name, self.project_name, -- cgit 1.2.3-korg