diff options
author | Manuel Buil <manuelbuil87@gmail.com> | 2016-12-08 14:56:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2016-12-08 14:56:04 +0000 |
commit | d6fffb5364031f16d678040ec43220c965094ee1 (patch) | |
tree | f8aa291d896419fe8cc5a86d6c40f61d60c91020 /tests/functest/odl-sfc/results.py | |
parent | d7d3c67a506c7fcddc60b47d62df933f156c987c (diff) | |
parent | 12b658702a1db256fb9cf1e3fa7d055ac58b91af (diff) |
Merge "odl-sfc refactor:run_tests.py integration"
Diffstat (limited to 'tests/functest/odl-sfc/results.py')
-rw-r--r-- | tests/functest/odl-sfc/results.py | 7 |
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} |