diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2017-08-23 09:28:59 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-23 09:28:59 +0000 |
commit | 0b4684562fa417201477fc4643a4eb4025847a84 (patch) | |
tree | 8ce57d32e2874431da0f00fdfdaaecf4797334bf /functest | |
parent | 29085f8b3de77ce989a5ab2c2a8ac87c657fe54c (diff) | |
parent | 4b672f26b14f5dd0f33833ba15185a53e84f4b44 (diff) |
Merge "Add the skipped testcases into details"
Diffstat (limited to 'functest')
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/tempest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/tempest.py b/functest/opnfv_tests/openstack/tempest/tempest.py index 003d4ea4..f783f01f 100644 --- a/functest/opnfv_tests/openstack/tempest/tempest.py +++ b/functest/opnfv_tests/openstack/tempest/tempest.py @@ -184,9 +184,12 @@ class TempestCommon(testcase.OSGCTestCase): try: self.result = 100 * int(num_success) / int(num_executed) except ZeroDivisionError: - logger.error("No test has been executed") self.result = 0 - return + if int(num_tests) > 0: + logger.info("All tests have been skipped") + else: + logger.error("No test has been executed") + return with open(os.path.join(conf_utils.TEMPEST_RESULTS_DIR, "tempest.log"), 'r') as logfile: |