This is an automated email from the ASF dual-hosted git repository. sjanc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git
commit e2d6bb4403f7c202e8ab02e2be2ab4b7130692da Author: Szymon Janc <[email protected]> AuthorDate: Fri Oct 9 15:11:49 2026 +0200 newt/cli: Fail if "all" is combined with other test packages "newt test all foo" silently ignored foo. Report a usage error instead. Assisted-by: Claude:claude-opus-5-5 --- newt/cli/build_cmds.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newt/cli/build_cmds.go b/newt/cli/build_cmds.go index e06e7e9d..d0c1fccc 100644 --- a/newt/cli/build_cmds.go +++ b/newt/cli/build_cmds.go @@ -274,6 +274,10 @@ func testRunCmd(cmd *cobra.Command, args []string, exclude string, executeShell for _, pkgName := range args { if pkgName == "all" { + if len(args) > 1 { + NewtUsage(cmd, util.NewNewtError( + "\"all\" cannot be combined with other packages")) + } testAll = true } else { pack, err := proj.ResolvePackage(proj.LocalRepo(), pkgName)
