Skip to content

Commit

Permalink
Fixed coverage flags based on comments.
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
naveensrinivasan committed Oct 20, 2022
1 parent 6eabd04 commit 4688274
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ func Run(t *testing.T, stdin, cmd string, arg ...string) string {

func RunCli(t *testing.T, arg ...string) string {
t.Helper()
arg = append([]string{coverageFlag()}, arg...)
arg = append(arg, rekorServerFlag())
// use a blank config file to ensure no collision
if os.Getenv("REKORTMPDIR") != "" {
Expand Down Expand Up @@ -116,7 +115,7 @@ func RunCliErr(t *testing.T, arg ...string) string {
t.Log(string(b))
t.Fatalf("expected error, got %s", string(b))
}
return string(b)
return stripCoverageOutput(string(b))
}

func rekorServerFlag() string {
Expand Down

0 comments on commit 4688274

Please sign in to comment.