@@ -311,12 +311,12 @@ def test_examples_in_folder(folderpath):
311
311
312
312
if BUILD_WARN :
313
313
if os .path .exists (gen_file_name ):
314
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , '-e' , examplepath ]
314
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , '-e' , folderpath ]
315
315
else :
316
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , examplepath ]
316
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'all' , '--fqbn' , fqbn , folderpath ]
317
317
else :
318
- cmd = ['arduino-cli' , 'compile' , '--warnings' , 'none' , '--export-binaries' , '--fqbn' , fqbn , examplepath ]
319
- proc = subprocess .Popen (cmd , stdout = subprocess .PIPE ,
318
+ cmd = ['arduino-cli' , 'compile' , '--warnings' , 'none' , '--export-binaries' , '--fqbn' , fqbn , folderpath ]
319
+ proc = subprocess .Popen (cmd , shell = True , stdout = subprocess .PIPE ,
320
320
stderr = subprocess .PIPE )
321
321
r = proc .wait (timeout = 60 )
322
322
out = proc .stdout .read ()
0 commit comments