8000 Refined the definition of `build_cache.path` and the `--build-path` behaviour by cmaglie · Pull Request #2673 · arduino/arduino-cli · GitHub
[go: up one dir, main page]

Skip to content

Refined the definition of build_cache.path and the --build-path behaviour #2673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Sep 18, 2024
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:avr@1.8.6")
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
0