@@ -850,7 +850,9 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
850
850
require .NoError (t , err )
851
851
852
852
// Install test library
853
- _ , _ , err = cli .Run ("lib" , "install" , "ArduinoIoTCloud" , "--config-file" , "arduino-cli.yaml" )
853
+ // (We must use [email protected] because it has a folder with a lot of files
854
+ // that will trigger the creation of an objs.a archive)
855
+ _ ,
_ ,
err = cli .
Run (
"lib" ,
"install" ,
"[email protected] " ,
"--config-file" ,
"arduino-cli.yaml" )
854
856
require .NoError (t , err )
855
857
856
858
stdout , _ , err := cli .Run ("lib" , "examples" , "ArduinoIoTCloud" , "--json" , "--config-file" , "arduino-cli.yaml" )
@@ -859,12 +861,10 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
859
861
sketchPath := paths .New (libOutput )
860
862
sketchPath = sketchPath .Join ("examples" , "ArduinoIoTCloud-Advanced" )
861
863
862
- t .Run ("Compile " , func (t * testing.T ) {
864
+ t .Run ("CheckCachingOfFolderArchives " , func (t * testing.T ) {
863
865
_ , _ , err = cli .Run ("compile" , "-b" , "esp8266:esp8266:huzzah" , sketchPath .String (), "--config-file" , "arduino-cli.yaml" )
864
866
require .NoError (t , err )
865
- })
866
867
867
- t .Run ("CheckCachingOfFolderArchives" , func (t * testing.T ) {
868
868
// Run compile again and check if the archive is re-used (cached)
869
869
out , _ , err := cli .Run ("compile" , "-b" , "esp8266:esp8266:huzzah" , sketchPath .String (), "--config-file" , "arduino-cli.yaml" , "-v" )
870
870
require .NoError (t , err )
0 commit comments