Skip to content

Commit

Permalink
fix(github): improve test renumbering check output
Browse files Browse the repository at this point in the history
  • Loading branch information
theseion committed Dec 3, 2022
1 parent ba52eaa commit 0831b85
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmd/util_renumber_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ RULE_ID is the ID of the rule, e.g., 932100, or the test file name.`,
if err != nil {
return err
}

// The following errors are not command related
cmd.SilenceUsage = true
if rootValues.output == gitHub {
cmd.SilenceErrors = true
}
ctxt := context.New(rootValues.workingDirectory.String())
renumberer := util.NewTestRenumberer()
if processAll {
Expand Down
2 changes: 1 addition & 1 deletion util/renumber_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (t *TestRenumberer) processFile(filePath string, checkOnly bool, gitHubOutp
}

if gitHubOutput {
fmt.Printf("::warning::Test file not properly numbered")
fmt.Printf("::warning::Test file not properly numbered: %s\n", path.Base(filePath))
}

if checkOnly {
Expand Down

0 comments on commit 0831b85

Please sign in to comment.