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):
339
339
continue
340
340
341
341
print ('\t ' + example , end = ' ' )
342
+
342
343
# check if we should SKIP
343
344
skipfilename = folderpath + "/." + platform + ".test.skip"
344
345
onlyfilename = folderpath + "/." + platform + ".test.only"
345
346
# check if we should GENERATE UF2
346
347
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
347
353
if os .path .exists (skipfilename ):
354
+ is_skip = True
348
355
ColorPrint .print_warn ("skipping" )
349
356
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
+
350
368
if glob .glob (folderpath + "/.*.test.only" ):
351
369
platformname = glob .glob (folderpath + "/.*.test.only" )[0 ].split ('.' )[1 ]
352
370
if platformname != "none" and not platformname in ALL_PLATFORMS :
You can’t perform that action at this time.
0 commit comments