24
24
sys .path .append (ROOT )
25
25
26
26
from workspace_tools .build_api import build_project , build_mbed_libs
27
- from workspace_tools .tests import TEST_MAP
27
+ from workspace_tools .tests import TEST_MAP , GROUPS
28
28
from workspace_tools .client import request_test , get_muts
29
29
from workspace_tools .settings import *
30
30
from workspace_tools .paths import BUILD_DIR
@@ -83,8 +83,17 @@ def load_data(path):
83
83
f = open (test_spec_file )
84
84
test_spec = json .load (f )
85
85
clean = test_spec .get ('clean' , False )
86
- test_ids = test_spec .get ('test_ids' , None )
87
-
86
+ test_ids = test_spec .get ('test_ids' , [])
87
+ groups = test_spec .get ('test_groups' , [])
88
+ for group in groups :
89
+ tests = GROUPS .get (group , [])
90
+ if not tests :
91
+ print "WARNING: test group '%s' not found." % group
92
+ continue
93
+ for test in tests :
94
+ if not test in test_ids :
95
+ test_ids .append (test )
96
+
88
97
# Test Server
89
98
test_server = TestServer ()
90
99
@@ -109,7 +118,7 @@ def load_data(path):
109
118
build_dir = join (BUILD_DIR , "test" , target , toolchain )
110
119
111
120
for test_id , test in TEST_MAP .iteritems ():
112
- if test_ids is not None and test_id not in test_ids :
121
+ if test_ids and test_id not in test_ids :
113
122
continue
114
123
115
124
if test .automated and test .is_supported (target , toolchain ):
0 commit comments