diff options
author | Jose Lausuch <jose.lausuch@ericsson.com> | 2016-12-16 09:58:00 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-16 09:58:00 +0000 |
commit | 9251dcc0c689edc182ab7ae5a7fabc7da6544eca (patch) | |
tree | df71e10ea2613fd904a89a7577bbf809ef35d47f /functest/opnfv_tests/sdn | |
parent | e9062a334bf73c19f3de74465209eaf099c46a26 (diff) | |
parent | 0d875d44c3d67e049c165365add1084467143b62 (diff) |
Merge "Add check_criteria() in testcase_base"
Diffstat (limited to 'functest/opnfv_tests/sdn')
-rwxr-xr-x | functest/opnfv_tests/sdn/odl/odl.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/functest/opnfv_tests/sdn/odl/odl.py b/functest/opnfv_tests/sdn/odl/odl.py index bc9f1bb7..7f44ae69 100755 --- a/functest/opnfv_tests/sdn/odl/odl.py +++ b/functest/opnfv_tests/sdn/odl/odl.py @@ -60,6 +60,7 @@ class ODLTests(testcase_base.TestcaseBase): logger = ft_logger.Logger("opendaylight").getLogger() def __init__(self): + testcase_base.TestcaseBase.__init__(self) self.case_name = "odl" @classmethod @@ -89,7 +90,6 @@ class ODLTests(testcase_base.TestcaseBase): self.details = {} self.details['description'] = result.suite.name self.details['tests'] = visitor.get_data() - return self.criteria def main(self, **kwargs): dirs = [self.basic_suite_dir, self.neutron_suite_dir] @@ -128,10 +128,8 @@ class ODLTests(testcase_base.TestcaseBase): self.logger.info("\n" + stdout.read()) self.logger.info("ODL results were successfully generated") try: - test_res = self.parse_results() + self.parse_results() self.logger.info("ODL results were successfully parsed") - if test_res is not "PASS": - return self.EX_RUN_ERROR except RobotError as e: self.logger.error("Run tests before publishing: %s" % e.message) |