Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite2bc059

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 parent85a0273 commite2bc059

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

‎cli/cli_test.go‎

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

‎cli/compile/compile.go‎

Lines changed: 0 additions & 2 deletions
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
returncommand
8482
}
8583

‎cli/upload/upload.go‎

Lines changed: 0 additions & 1 deletion
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
returnuploadCommand

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp