@@ -265,13 +265,14 @@ def generate_uf2(example_path):
265
265
r = proc .wait (timeout = 60 )
266
266
out = proc .stdout .read ()
267
267
err = proc .stderr .read ()
268
- if r == 0 and not err :
268
+ if r == 0 : # and not err: # we might get warnings that do not affect the result
269
269
ColorPrint .print_pass (CHECK )
270
270
ColorPrint .print_info (out .decode ("utf-8" ))
271
271
else :
272
272
ColorPrint .print_fail (CROSS )
273
- ColorPrint .print_fail (out .decode ("utf-8" ))
274
- ColorPrint .print_fail (err .decode ("utf-8" ))
273
+ ColorPrint .print_fail ("\n \r ERRCODE:" , str (r ))
274
+ ColorPrint .print_fail ("\n \r OUTPUT: " , out .decode ("utf-8" ))
275
+ ColorPrint .print_fail ("\n \r ERROR: " , err .decode ("utf-8" ))
275
276
return None
276
277
return output_file
277
278
@@ -309,6 +310,7 @@ def test_examples_in_folder(folderpath):
309
310
global success
310
311
for example in sorted (os .listdir (folderpath )):
311
312
examplepath = folderpath + "/" + example
313
+ ColorPrint .print_info (folderpath , examplepath )
312
314
if os .path .isdir (examplepath ):
313
315
test_examples_in_folder (examplepath )
314
316
continue
@@ -358,6 +360,9 @@ def test_examples_in_folder(folderpath):
358
360
out , err = proc .communicate ()
359
361
r = 1
360
362
363
+ os .system ("ls -lR " + BUILD_DIR + "/build" )
364
+ os .system ("ls -lR " + folderpath )
365
+
361
366
if r == 0 and not (err and BUILD_WALL == True ):
362
367
ColorPrint .print_pass (CHECK )
363
368
if err :
@@ -373,6 +378,7 @@ def test_examples_in_folder(folderpath):
373
378
if filename is None :
374
379
success = 1 # failure
375
380
if IS_LEARNING_SYS :
381
+ ColorPrint .print_info (filename .split , filename .split ("/" ))
376
382
fqbnpath , uf2file = filename .split ("/" )[- 2 :]
377
383
os .makedirs (BUILD_DIR + "/build" , exist_ok = True )
378
384
os .makedirs (BUILD_DIR + "/build/" + fqbnpath , exist_ok = True )
0 commit comments