Skip to content

Commit

Permalink
Ported TestFailIfBuildPathEqualsSketchPath and TestFailIfBuildPathEqu…
Browse files Browse the repository at this point in the history
…alsSketchPathSketchPathDiffers to current integration test infra
  • Loading branch information
cmaglie committed Sep 7, 2023
1 parent aa0e293 commit 3d8d37d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 46 deletions.
6 changes: 6 additions & 0 deletions internal/integrationtest/compile_1/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1220,4 +1220,10 @@ func buildWithCustomBuildPath(t *testing.T, env *integrationtest.Environment, cl
_, _, err = cli.Run("compile", "-b", "arduino:avr:uno", "--build-path", buildPath.String(), sketchPath.String())
require.NoError(t, err)
})

t.Run("SameAsSektch", func(t *testing.T) {
// Run build
_, _, err := cli.Run("compile", "-b", "arduino:avr:uno", "--build-path", sketchPath.String(), sketchPath.String())
require.Error(t, err)
})
}
46 changes: 0 additions & 46 deletions legacy/builder/test/fail_if_buildpath_equals_sketchpath_test.go

This file was deleted.

0 comments on commit 3d8d37d

Please sign in to comment.