Skip to content

Commit

Permalink
Fixed integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Apr 17, 2023
1 parent af7beee commit a82cb1e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/integrationtest/compile_2/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,10 @@ func TestCompileManuallyInstalledPlatformUsingBoardsLocalTxt(t *testing.T) {
env, cli := integrationtest.CreateArduinoCLIWithEnvironment(t)
defer env.CleanUp()

_, _, err := cli.Run("update")
require.NoError(t, err)

sketchName := "CompileSketchManuallyInstalledPlatformUsingBoardsLocalTxt"
sketchPath := cli.SketchbookDir().Join(sketchName)
fqbn := "arduino-beta-development:avr:nessuno"
_, _, err = cli.Run("sketch", "new", sketchPath.String())
_, _, err := cli.Run("sketch", "new", sketchPath.String())
require.NoError(t, err)

// Manually installs a core in sketchbooks hardware folder
Expand All @@ -188,7 +185,7 @@ func TestCompileManuallyInstalledPlatformUsingBoardsLocalTxt(t *testing.T) {
// Verifies compilation fails because board doesn't exist
_, stderr, err := cli.Run("compile", "--clean", "-b", fqbn, sketchPath.String())
require.Error(t, err)
require.Contains(t, string(stderr), "Error during build: Error resolving FQBN: board arduino-beta-development:avr:nessuno not found")
require.Contains(t, string(stderr), "Error during build: Invalid FQBN: board arduino-beta-development:avr:nessuno not found")

// Use custom boards.local.txt with made arduino:avr:nessuno board
boardsLocalTxt := repoDir.Join("boards.local.txt")
Expand Down

0 comments on commit a82cb1e

Please sign in to comment.