File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -339,14 +339,32 @@ def test_examples_in_folder(platform, folderpath):
339339 continue
340340
341341 print ('\t ' + example , end = ' ' )
342+
342343 # check if we should SKIP
343344 skipfilename = folderpath + "/." + platform + ".test.skip"
344345 onlyfilename = folderpath + "/." + platform + ".test.only"
345346 # check if we should GENERATE UF2
346347 gen_file_name = folderpath + "/." + platform + ".generate"
348+
349+ # .skip txt include all skipped platforms, one per line
350+ skip_txt = folderpath + "/.skip.txt"
351+
352+ is_skip = False
347353 if os .path .exists (skipfilename ):
354+ is_skip = True
348355 ColorPrint .print_warn ("skipping" )
349356 continue
357+ if os .path .exists (skip_txt ):
358+ with open (skip_txt ) as f :
359+ lines = f .readlines ()
360+ for line in lines :
361+ if line .strip () == platform :
362+ is_skip = True
363+ break
364+ if is_skip :
365+ ColorPrint .print_warn ("skipping" )
366+ continue
367+
350368 if glob .glob (folderpath + "/.*.test.only" ):
351369 platformname = glob .glob (folderpath + "/.*.test.only" )[0 ].split ('.' )[1 ]
352370 if platformname != "none" and not platformname in ALL_PLATFORMS :
You can’t perform that action at this time.
0 commit comments