File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -1332,16 +1332,13 @@ class TestSuite:
1332
1332
board_root = os .path .abspath (board_root )
1333
1333
1334
1334
debug ("Reading platform configuration files under %s..." % board_root )
1335
- for dirpath , dirnames , filenames in os .walk (board_root ):
1336
- for filename in filenames :
1337
- if filename .endswith (".yaml" ):
1338
- fn = os .path .join (dirpath , filename )
1339
- verbose ("Found plaform configuration " + fn )
1340
- try :
1341
- platform = Platform (fn )
1342
- self .platforms .append (platform )
1343
- except RuntimeError as e :
1344
- error ("E: %s: can't load: %s" % (fn , e ))
1335
+ for fn in glob .glob (os .path .join (board_root , "*" , "*" , "*.yaml" )):
1336
+ verbose ("Found plaform configuration " + fn )
1337
+ try :
1338
+ platform = Platform (fn )
1339
+ self .platforms .append (platform )
1340
+ except RuntimeError as e :
1341
+ error ("E: %s: can't load: %s" % (fn , e ))
1345
1342
1346
1343
arches = []
1347
1344
for p in self .platforms :
You can’t perform that action at this time.
0 commit comments