Unverified Commit 12c6c32b authored by MatteoPologruto's avatar MatteoPologruto Committed by GitHub

[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.
parent 589cbcce
......@@ -152,7 +152,7 @@ func (cli *ArduinoCLI) CopySketch(sketchName string) *paths.Path {
cli.t.NoError(err)
cli.t.NotNil(p)
testSketch := p.Parent().Join("testdata", sketchName)
sketchPath := cli.SketchbookDir().Join(sketchName)
sketchPath := cli.WorkingDir().Join(sketchName)
err = testSketch.CopyDirTo(sketchPath)
cli.t.NoError(err)
return sketchPath
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment