aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2017-05-17 14:17:21 +0200
committerJose Lausuch <jose.lausuch@ericsson.com>2017-05-17 12:59:37 +0000
commit57da7080488785813adcaff4e2410e2338dccf2a (patch)
tree3c05ddb9608295d8dbadd9c445cf7a5c7a9b2c85 /functest/opnfv_tests
parent0821c4204c7ca470818cfe1c83060fcd2f94e3d6 (diff)
Update self.result value to INT
So far, the test cases are storing a string "PASS" "FAIL" in the self.result variable. The way the new framework works is with INT Values. Change-Id: I45e8693327740faadd8254b21569adfb2cefa6c8 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'functest/opnfv_tests')
-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 8eb41bee..8e71bf82 100644
--- a/functest/opnfv_tests/openstack/vping/vping_base.py
+++ b/functest/opnfv_tests/openstack/vping/vping_base.py
@@ -31,6 +31,7 @@ class VPingBase(TestCase):
internal network.
This class is responsible for creating the image, internal network.
"""
+
def __init__(self, **kwargs):
super(VPingBase, self).__init__(**kwargs)
@@ -155,7 +156,7 @@ class VPingBase(TestCase):
return TestCase.EX_RUN_ERROR
self.stop_time = time.time()
- self.result = 'PASS'
+ self.result = 100
return TestCase.EX_OK
def _cleanup(self):
@@ -193,6 +194,7 @@ class VPingBase(TestCase):
class VPingMain(object):
+
def __init__(self, vping_cls):
self.vping = vping_cls()