Skip to content

Commit 6a77eda

Browse files
Fix errors related to the change of the working directory
1 parent 0f7cca4 commit 6a77eda

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/integrationtest/compile/compile_part_1_test.go

Lines changed: 1 addition & 4 deletions
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)