aboutsummaryrefslogtreecommitdiffstats
path: root/functest/core
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2017-05-10 07:54:08 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-05-10 07:54:08 +0000
commit5b536321b8722f87715cab7bae3f6813bb73fd2a (patch)
tree0f6038f9628a67481684eeeed2c2d5f5e74467f8 /functest/core
parentce80dec85ee484d5c0cd6ed2a48c60529938a706 (diff)
parentf2bbfb690ce435c389b548d6b299ff82f658ea80 (diff)
Merge "Conform ODL with last framework updates"
Diffstat (limited to 'functest/core')
-rw-r--r--functest/core/testcase.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/functest/core/testcase.py b/functest/core/testcase.py
index b220a587..49fae609 100644
--- a/functest/core/testcase.py
+++ b/functest/core/testcase.py
@@ -39,9 +39,9 @@ class TestCase(object):
self.project_name = kwargs.get('project_name', 'functest')
self.case_name = kwargs.get('case_name', '')
self.criteria = kwargs.get('criteria', 100)
- self.result = ""
- self.start_time = ""
- self.stop_time = ""
+ self.result = 0
+ self.start_time = 0
+ self.stop_time = 0
def __str__(self):
try:
@@ -90,7 +90,8 @@ class TestCase(object):
"""
try:
assert self.criteria
- if isinstance(self.result, int) and isinstance(self.criteria, int):
+ if (not isinstance(self.result, str) and
+ not isinstance(self.criteria, str)):
if self.result >= self.criteria:
return TestCase.EX_OK
else: