Skip to content

Commit d4fe60d

Browse files
committed
throw error when no tests were run
1 parent 80caa43 commit d4fe60d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/flakeguard/cmd/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ var RunTestsCmd = &cobra.Command{
175175
}
176176

177177
if len(mainResults) == 0 {
178-
log.Warn().Msg("No tests were run.")
179-
flushSummaryAndExit(0)
178+
log.Error().Msg("No tests were run.")
179+
flushSummaryAndExit(ErrorExitCode)
180180
}
181181

182182
// Save the main test results to file

0 commit comments

Comments
 (0)