File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
arduino/cores/packagemanager Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ package packagemanager_test
2020import (
2121 "fmt"
2222 "net/url"
23+ "os"
2324 "testing"
2425
2526 "github.com/arduino/arduino-cli/arduino/cores"
@@ -213,7 +214,8 @@ func TestBoardOptionsFunctions(t *testing.T) {
213214}
214215
215216func TestFindToolsRequiredForBoard (t * testing.T ) {
216- configuration .Init (dataDir1 .String ())
217+ os .Setenv ("ARDUINO_DATA_DIR" , dataDir1 .String ())
218+ configuration .Init ("" )
217219 fmt .Println (viper .AllSettings ())
218220 pm := packagemanager .NewPackageManager (
219221 dataDir1 ,
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func Init(configPath string) {
5252 viper .BindEnv ("directories.Downloads" , "ARDUINO_DOWNLOADS_DIR" )
5353 viper .BindEnv ("directories.Data" , "ARDUINO_DATA_DIR" )
5454
55- // Early access directories.Data and directories.Sketchbookin case
55+ // Early access directories.Data and directories.Sketchbook in case
5656 // those were set through env vars or cli flags
5757 dataDir := viper .GetString ("directories.Data" )
5858 if dataDir == "" {
You can’t perform that action at this time.
0 commit comments