From 57da7080488785813adcaff4e2410e2338dccf2a Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 17 May 2017 14:17:21 +0200 Subject: Update self.result value to INT So far, the test cases are storing a string "PASS" "FAIL" in the self.result variable. The way the new framework works is with INT Values. Change-Id: I45e8693327740faadd8254b21569adfb2cefa6c8 Signed-off-by: jose.lausuch --- functest/core/pytest_suite_runner.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'functest/core/pytest_suite_runner.py') diff --git a/functest/core/pytest_suite_runner.py b/functest/core/pytest_suite_runner.py index 5cbb3621..bcbaa25d 100644 --- a/functest/core/pytest_suite_runner.py +++ b/functest/core/pytest_suite_runner.py @@ -52,13 +52,13 @@ class PyTestSuiteRunner(testcase.TestCase): # TestCase.EX_RUN_ERROR means that the test case was not run # not that it was run but the result was FAIL exit_code = testcase.TestCase.EX_OK - if ((result.errors and len(result.errors) > 0) - or (result.failures and len(result.failures) > 0)): + if ((result.errors and len(result.errors) > 0) or + (result.failures and len(result.failures) > 0)): self.logger.info("%s FAILED", self.case_name) - self.result = 'FAIL' + self.result = 0 else: self.logger.info("%s OK", self.case_name) - self.result = 'PASS' + self.result = 100 self.details = {} return exit_code -- cgit 1.2.3-korg