Skip to content

Commit b740b80

Browse files
Shorten testsuite ProjectName and DataDir to prevent errors on Windows runner
Long paths caused certain commands to fail on the Windows runner. Reducing their lengths prevents those errors from occurring.
1 parent 0562eee commit b740b80

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: internal/integrationtest/arduino-cli.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ import (
3737
"google.golang.org/grpc"
3838
)
3939

40+
func init() {
41+
testsuite.ProjectName = "cli"
42+
}
43+
4044
// FindRepositoryRootPath returns the repository root path
4145
func FindRepositoryRootPath(t *testing.T) *paths.Path {
4246
repoRootPath := paths.New(".")
@@ -89,7 +93,7 @@ func NewArduinoCliWithinEnvironment(env *testsuite.Environment, config *ArduinoC
8993
cli := &ArduinoCLI{
9094
path: config.ArduinoCLIPath,
9195
t: require.New(env.T()),
92-
dataDir: env.RootDir().Join("Arduino15"),
96+
dataDir: env.RootDir().Join("A"),
9397
sketchbookDir: env.RootDir().Join("Arduino"),
9498
stagingDir: env.RootDir().Join("Arduino15/staging"),
9599
}

0 commit comments

Comments
 (0)