Skip to content

Commit 019d971

Browse files
Fix errors related to the change of the working directory
1 parent 4c745c9 commit 019d971

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/integrationtest/compile/compile_part_1_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,7 @@ func TestOutputFlagDefaultPath(t *testing.T) {
164164
require.NoError(t, err)
165165

166166
// Test the --output-dir flag defaulting to current working dir
167-
workingDir, err := paths.Getwd()
168-
require.NoError(t, err)
169-
target := workingDir.Join("test")
170-
defer target.RemoveAll()
167+
target := cli.WorkingDir().Join("test")
171168
_, _, err = cli.Run("compile", "-b", fqbn, sketchPath.String(), "--output-dir", "test")
172169
require.NoError(t, err)
173170
require.DirExists(t, target.String())

0 commit comments

Comments
 (0)