Skip to content

Commit e2bc059

Browse files
author
Massimiliano Pippi
authored
Fix regression on compile and upload with attached sketches (#545)
* fix regression on board attach * fix integration tests
1 parent 85a0273 commit e2bc059

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

Diff for: cli/cli_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ func TestCompileCommandsIntegration(t *testing.T) {
312312
// Build sketch without FQBN
313313
exitCode, d = executeWithArgs("compile", sketchPath)
314314
require.NotZero(t, exitCode)
315-
require.Contains(t, string(d), "required flag(s) \"fqbn\" not set")
315+
require.Contains(t, string(d), "no FQBN provided")
316316

317317
// Build sketch for arduino:avr:uno
318318
exitCode, d = executeWithArgs("compile", "-b", "arduino:avr:uno", sketchPath)

Diff for: cli/compile/compile.go

-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ func NewCommand() *cobra.Command {
7878
command.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
7979
command.Flags().StringVar(&vidPid, "vid-pid", "", "When specified, VID/PID specific build properties are used, if boards supports them.")
8080

81-
command.MarkFlagRequired("fqbn")
82-
8381
return command
8482
}
8583

Diff for: cli/upload/upload.go

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func NewCommand() *cobra.Command {
5454
uploadCommand.Flags().BoolVarP(&verify, "verify", "t", false, "Verify uploaded binary after the upload.")
5555
uploadCommand.Flags().BoolVarP(&verbose, "verbose", "v", false, "Optional, turns on verbose mode.")
5656

57-
uploadCommand.MarkFlagRequired("fqbn")
5857
uploadCommand.MarkFlagRequired("port")
5958

6059
return uploadCommand

0 commit comments

Comments
 (0)