Skip to content

Commit 6c3755c

Browse files
[skip-changelog] Migrate tests from test_compile_part_1.py to compile_part_1_test.go (#1861)
* Migrate TestCompileWithoutFqbn from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileErrorMessage from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithSimpleSketch from test_compile_part_1.py to compile_part_1_test.go * Migrate TestOutputFlagDefaultPath from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithSketchWithSymlinkSelfloop from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileBlacklistedSketchname from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithoutPrecompiledLibraries from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithBuildPropertiesFlag from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithBuildPropertyContainingQuotes from test_compile_part_1.py to compile_part_1_test.go * Migrate TestCompileWithMultipleBuildPropertyFlags to compile_part_1_test.go and delete test_compile_part_1.py * 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 5730e2e commit 6c3755c

File tree

7 files changed

+480
-440
lines changed

7 files changed

+480
-440
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)