diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-10-03 06:16:20 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2017-10-03 06:20:12 +0200 |
commit | 5ffb995c110be39364535f56c86c46d092b8cea0 (patch) | |
tree | 7325e3f605079721740313c8d49c0e0479069f8c /functest/opnfv_tests/openstack/vping | |
parent | a691a8c2868d3f8af531e0bff513023c3a704aaf (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>
Diffstat (limited to 'functest/opnfv_tests/openstack/vping')
-rw-r--r-- | functest/opnfv_tests/openstack/vping/vping_base.py | 4 |
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 a8525a38..e719145b 100644 --- a/functest/opnfv_tests/openstack/vping/vping_base.py +++ b/functest/opnfv_tests/openstack/vping/vping_base.py @@ -181,10 +181,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 |