aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core/testcase.py
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-05-06 07:20:55 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-06 07:20:55 +0000
commit1d5e199517ff09d959a1240f3b4e715be799058b (patch)
tree453b7768851d04a64e1593691a6817f7fdc1d695 /functest/core/testcase.py
parent25e6056936b358d7556865deb8f3e86f63248efe (diff)
parent537b2d246673e47667866636de736a7d9bfb9884 (diff)
Merge "Rename TestCase check_result() to is_successful()"
Diffstat (limited to 'functest/core/testcase.py')
-rw-r--r--functest/core/testcase.py4
1 files changed, 2 insertions, 2 deletions
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,