Skip to content

Commit

Permalink
Print each iteration of a flakey test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryNguyen5 committed Apr 28, 2024
1 parent 262d492 commit c70a6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/flakeytests/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ func (r *Runner) runTests(rep *Report) (*Report, error) {
ts = append(ts, test)
}

log.Printf("[FLAKEY_TEST] Executing test command with parameters: pkg=%s, tests=%+v, numReruns=%d\n", pkg, ts, r.numReruns)
for i := 0; i < r.numReruns; i++ {
log.Printf("[FLAKEY_TEST] Executing test command with parameters: pkg=%s, tests=%+v, numReruns=%d currentRun=%d\n", pkg, ts, r.numReruns, i)
pr, err := r.runTest(pkg, ts)
if err != nil {
return report, err
Expand All @@ -237,8 +237,8 @@ func (r *Runner) runTests(rep *Report) (*Report, error) {
}

for pkg := range rep.packagePanics {
log.Printf("[PACKAGE_PANIC]: Executing test command with parameters: pkg=%s, numReruns=%d\n", pkg, r.numReruns)
for i := 0; i < r.numReruns; i++ {
log.Printf("[PACKAGE_PANIC]: Executing test command with parameters: pkg=%s, numReruns=%d currentRun=%d\n", pkg, r.numReruns, i)
pr, err := r.runTest(pkg, []string{})
if err != nil {
return report, err
Expand Down

0 comments on commit c70a6e4

Please sign in to comment.