Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated integration test
  • Loading branch information
cmaglie committed Sep 18, 2024
commit bc1521d087e6479a693001b1bbf6e6052f17e6ea
7 changes: 6 additions & 1 deletion internal/integrationtest/compile_4/core_caching_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package compile_test

import (
"strings"
"testing"

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

// Get default cache path
out, _, err := cli.Run("config", "get", "build_cache.path")
require.NoError(t, err)
defaultCache := paths.New(strings.TrimSpace(string(out)))

// Main core cache
defaultCache := paths.TempDir().Join("arduino")
cache1, err := paths.MkTempDir("", "core_cache")
require.NoError(t, err)
t.Cleanup(func() { cache1.RemoveAll() })
Expand Down