summaryrefslogtreecommitdiffstats
path: root/tests/functest/odl-sfc/results.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functest/odl-sfc/results.py')
-rw-r--r--tests/functest/odl-sfc/results.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/functest/odl-sfc/results.py b/tests/functest/odl-sfc/results.py
index 69e5523b..5fa9aa05 100644
--- a/tests/functest/odl-sfc/results.py
+++ b/tests/functest/odl-sfc/results.py
@@ -43,11 +43,10 @@ class Results(object):
self.add_to_summary(0, "=")
logger.info("\n%s" % self.summary)
- status = "FAILED"
- if self.test_result == "PASS":
- status = "PASS"
+ if self.num_tests_failed == 0:
+ self.test_result = "PASS"
logger.info(success_message)
else:
logger.info(failure_message)
- return {"status": status, "details": self.details}
+ return {"status": self.test_result, "details": self.details}