Skip to content

Commit 12c6c32

Browse files
[skip-changelog] Fix copySketch testsuite function (#1918)
The original copy sketch function written in conftest.py copies sketches into the testsuite's working directory. Changing the copy sketch function present in the golang testsuite to match the original one, should prevent errors that could occur while migrating tests.
1 parent 589cbcc commit 12c6c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/integrationtest/arduino-cli.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (cli *ArduinoCLI) CopySketch(sketchName string) *paths.Path {
152152
cli.t.NoError(err)
153153
cli.t.NotNil(p)
154154
testSketch := p.Parent().Join("testdata", sketchName)
155-
sketchPath := cli.SketchbookDir().Join(sketchName)
155+
sketchPath := cli.WorkingDir().Join(sketchName)
156156
err = testSketch.CopyDirTo(sketchPath)
157157
cli.t.NoError(err)
158158
return sketchPath

0 commit comments

Comments
 (0)