Skip to content

Commit 3a6feb9

Browse files
committed
Updated integration test
1 parent 88d12ef commit 3a6feb9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/integrationtest/compile_4/core_caching_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package compile_test
1717

1818
import (
19+
"strings"
1920
"testing"
2021

2122
"github.com/arduino/arduino-cli/internal/integrationtest"
@@ -31,8 +32,12 @@ func TestBuildCacheCoreWithExtraDirs(t *testing.T) {
3132
_, _, err := cli.Run("core", "install", "arduino:[email protected]")
3233
require.NoError(t, err)
3334

35+
// Get default cache path
36+
out, _, err := cli.Run("config", "get", "build_cache.path")
37+
require.NoError(t, err)
38+
defaultCache := paths.New(strings.TrimSpace(string(out)))
39+
3440
// Main core cache
35-
defaultCache := paths.TempDir().Join("arduino")
3641
cache1, err := paths.MkTempDir("", "core_cache")
3742
require.NoError(t, err)
3843
t.Cleanup(func() { cache1.RemoveAll() })

0 commit comments

Comments
 (0)