From 689efd78cfa3b6395f3f44f82e6bb08f8306a950 Mon Sep 17 00:00:00 2001 From: Matteo Pologruto Date: Wed, 12 Oct 2022 10:59:19 +0200 Subject: [PATCH] Fix copySketch testsuite function 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. --- internal/integrationtest/arduino-cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/integrationtest/arduino-cli.go b/internal/integrationtest/arduino-cli.go index f7ba53601cb..9b5dfb1d402 100644 --- a/internal/integrationtest/arduino-cli.go +++ b/internal/integrationtest/arduino-cli.go @@ -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