@@ -168,6 +168,8 @@ def install_platform(platform):
168
168
ColorPrint .print_fail ("FAILED to install " + platform )
169
169
exit (- 1 )
170
170
ColorPrint .print_pass (CHECK )
171
+ # print installed core version
172
+ print (os .popen ('arduino-cli core list | grep {}' .format (platform )).read (), end = '' )
171
173
172
174
def run_or_die (cmd , error ):
173
175
print (cmd )
@@ -311,12 +313,12 @@ def test_examples_in_folder(folderpath):
311
313
312
314
if BUILD_WARN :
313
315
if os .path .exists (gen_file_name ):
314
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , '-e' , examplepath ]
316
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , '-e' , folderpath ]
315
317
else :
316
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , examplepath ]
318
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , folderpath ]
317
319
else :
318
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'none' , '--export-binaries' , '--fqbn' , fqbn , examplepath ]
319
- proc = subprocess .Popen (cmd , stdout = subprocess .PIPE ,
320
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'none' , '--export-binaries' , '--fqbn' , fqbn , folderpath ]
321
+ proc = subprocess .Popen (cmd , shell = True , stdout = subprocess .PIPE ,
320
322
stderr = subprocess .PIPE )
321
323
r = proc .wait (timeout = 60 )
322
324
out = proc .stdout .read ()
0 commit comments