@@ -168,6 +168,8 @@ def install_platform(platform):
168168 ColorPrint .print_fail ("FAILED to install " + platform )
169169 exit (- 1 )
170170 ColorPrint .print_pass (CHECK )
171+ # print installed core version
172+ print (os .popen ('arduino-cli core list | grep {}' .format (platform )).read (), end = '' )
171173
172174def run_or_die (cmd , error ):
173175 print (cmd )
@@ -311,12 +313,12 @@ def test_examples_in_folder(folderpath):
311313
312314 if BUILD_WARN :
313315 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 ]
315317 else :
316- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , examplepath ]
318+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , folderpath ]
317319 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 ,
320322 stderr = subprocess .PIPE )
321323 r = proc .wait (timeout = 60 )
322324 out = proc .stdout .read ()
0 commit comments