Skip to content

Commit 3988f92

Browse files
Merge branch 'master' into rpc-expose-lib-dependecies
2 parents ed3a5f9 + aa62661 commit 3988f92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: internal/integrationtest/compile_1/compile_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,9 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
850850
require.NoError(t, err)
851851

852852
// 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")
854856
require.NoError(t, err)
855857

856858
stdout, _, err := cli.Run("lib", "examples", "ArduinoIoTCloud", "--json", "--config-file", "arduino-cli.yaml")
@@ -859,12 +861,10 @@ func TestCompileWithArchivesAndLongPaths(t *testing.T) {
859861
sketchPath := paths.New(libOutput)
860862
sketchPath = sketchPath.Join("examples", "ArduinoIoTCloud-Advanced")
861863

862-
t.Run("Compile", func(t *testing.T) {
864+
t.Run("CheckCachingOfFolderArchives", func(t *testing.T) {
863865
_, _, err = cli.Run("compile", "-b", "esp8266:esp8266:huzzah", sketchPath.String(), "--config-file", "arduino-cli.yaml")
864866
require.NoError(t, err)
865-
})
866867

867-
t.Run("CheckCachingOfFolderArchives", func(t *testing.T) {
868868
// Run compile again and check if the archive is re-used (cached)
869869
out, _, err := cli.Run("compile", "-b", "esp8266:esp8266:huzzah", sketchPath.String(), "--config-file", "arduino-cli.yaml", "-v")
870870
require.NoError(t, err)

0 commit comments

Comments
 (0)