From 537b2d246673e47667866636de736a7d9bfb9884 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 5 May 2017 15:24:54 +0200 Subject: Rename TestCase check_result() to is_successful() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I41cea33b4c1dae79e75231e7c7e069fc89736f34 Signed-off-by: Cédric Ollivier --- functest/core/testcase.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'functest/core') diff --git a/functest/core/testcase.py b/functest/core/testcase.py index fd892849..62465542 100644 --- a/functest/core/testcase.py +++ b/functest/core/testcase.py @@ -61,7 +61,7 @@ class TestCase(object): self.__logger.error("Please run test before getting the duration") return "XX:XX" - def check_result(self): + def is_successful(self): """Interpret the result of the test case. It allows getting the result of TestCase. It completes run() @@ -141,7 +141,7 @@ class TestCase(object): assert self.case_name assert self.start_time assert self.stop_time - pub_result = 'PASS' if self.check_result( + pub_result = 'PASS' if self.is_successful( ) == TestCase.EX_OK else 'FAIL' if ft_utils.push_results_to_db( self.project_name, self.case_name, self.start_time, -- cgit 1.2.3-korg