summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric Ollivier <cedric.ollivier@orange.com>2017-10-03 07:44:33 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-03 07:44:33 +0000
commitb9745b8a5e2fe6400a68372eee8f7b442206fe5f (patch)
tree6e8711509503f951ed5a15e04ddd245c61d0cccc
parente8fab5661697eb17c28fd14ed712ff776c2af39b (diff)
parent43b0020a54051b8499e00b9840d73e87cc0b7e66 (diff)
Merge "Report duration and result when vping fails" into stable/euphrates
-rw-r--r--functest/opnfv_tests/openstack/vping/vping_base.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/functest/opnfv_tests/openstack/vping/vping_base.py b/functest/opnfv_tests/openstack/vping/vping_base.py
index 8b622e1c7..1a2378775 100644
--- a/functest/opnfv_tests/openstack/vping/vping_base.py
+++ b/functest/opnfv_tests/openstack/vping/vping_base.py
@@ -165,10 +165,12 @@ class VPingBase(testcase.TestCase):
else:
raise Exception('VMs never became active')
+ self.stop_time = time.time()
+
if result != testcase.TestCase.EX_OK:
+ self.result = 0
return testcase.TestCase.EX_RUN_ERROR
- self.stop_time = time.time()
self.result = 100
return testcase.TestCase.EX_OK