summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-08-23 09:28:59 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-08-23 09:28:59 +0000
commit0b4684562fa417201477fc4643a4eb4025847a84 (patch)
tree8ce57d32e2874431da0f00fdfdaaecf4797334bf
parent29085f8b3de77ce989a5ab2c2a8ac87c657fe54c (diff)
parent4b672f26b14f5dd0f33833ba15185a53e84f4b44 (diff)
Merge "Add the skipped testcases into details"
-rw-r--r--functest/opnfv_tests/openstack/tempest/tempest.py7
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 003d4ea41..f783f01ff 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: