diff options
author | Vijayendra Radhakrishna <vradhakrishna@mvista.com> | 2016-12-07 16:22:28 +0530 |
---|---|---|
committer | Vijayendra Radhakrishna <vradhakrishna@mvista.com> | 2016-12-07 18:04:47 +0530 |
commit | 12b658702a1db256fb9cf1e3fa7d055ac58b91af (patch) | |
tree | 213340894e4b9a492abfc1bf4108525e3987d55b /tests/functest/odl-sfc/results.py | |
parent | 7fddc131f4ed035397adf685df617d0df6cd8bf9 (diff) |
odl-sfc refactor:run_tests.py integration
- JIRA:SFC-54
- This has not yet removed dependacy of prepare_odl_sfc.py
Change-Id: Ie86eb167d49a16bbe4322978a907825829ac364d
Signed-off-by: Vijayendra Radhakrishna <vradhakrishna@mvista.com>
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} |