From 5ccacfe4bc9ce4383ee3ef84f64fa620eae0d20f Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 16 May 2018 22:44:17 -0400 Subject: 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 --- dovetail/testcase.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dovetail/testcase.py') 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) -- cgit 1.2.3-korg