summaryrefslogtreecommitdiffstats
path: root/dovetail/testcase.py
diff options
context:
space:
mode:
authorxudan <xudan16@huawei.com>2018-05-16 22:44:17 -0400
committerGeorg Kunz <georg.kunz@ericsson.com>2018-05-18 06:27:21 +0000
commit5ccacfe4bc9ce4383ee3ef84f64fa620eae0d20f (patch)
treecab59e1fe892a4f8b539a9d2dd4cf39fbd7de993 /dovetail/testcase.py
parent1f427c7b74bec80deade3be3457fe3c4c16f75b5 (diff)
Got an exception when test suite is empty
1. Return empty test case list when test suite is empty. 2. Don't quite understand why comment out all proposed_tests. 3. Move stress ping test case at the end of the list, because it may broken the message queue. Change-Id: Ib717fc91e3763be03f243f82e53679462ecdae04 Signed-off-by: xudan <xudan16@huawei.com>
Diffstat (limited to 'dovetail/testcase.py')
-rw-r--r--dovetail/testcase.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/dovetail/testcase.py b/dovetail/testcase.py
index 221d07f4..9680f192 100644
--- a/dovetail/testcase.py
+++ b/dovetail/testcase.py
@@ -16,6 +16,7 @@ from parser import Parser
from test_runner import TestRunnerFactory
from utils.dovetail_config import DovetailConfig as dt_cfg
import utils.dovetail_logger as dt_logger
+import utils.dovetail_utils as dt_utils
class Testcase(object):
@@ -273,7 +274,10 @@ class Testcase(object):
@classmethod
def get_testcase_list(cls, testsuite, testarea):
testcase_list = []
- for value in testsuite['testcases_list']:
+ testcases = dt_utils.get_value_from_dict('testcases_list', testsuite)
+ if not testcases:
+ return testcase_list
+ for value in testcases:
for area in testarea:
if value is not None and (area == 'full' or area in value):
testcase_list.append(value)