summaryrefslogtreecommitdiffstats
path: root/functest
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2017-10-03 06:16:20 +0200
committerMorgan Richomme <morgan.richomme@orange.com>2017-10-03 06:36:28 +0000
commit43b0020a54051b8499e00b9840d73e87cc0b7e66 (patch)
treeef30a0e782a3cde5968ce2d01999fa9638e8aa18 /functest
parent625f8ba769a6f9c897fa4f2dd94054edc7073540 (diff)
Report duration and result when vping fails
It completes "Bug fix: vping_userdata test status was not properly reported" [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/43911/ Change-Id: I7e8be6cd564a24ca174e63cfc295861c51cae8ed Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> (cherry picked from commit 5ffb995c110be39364535f56c86c46d092b8cea0)
Diffstat (limited to 'functest')
-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