Skip to content

Commit

Permalink
roachtest: log ##teamcity[testFinished..] only on teamcity
Browse files Browse the repository at this point in the history
  • Loading branch information
Miral Gadani committed Apr 4, 2023
1 parent 569aafb commit 189cbad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/cmd/roachtest/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -899,8 +899,10 @@ func (r *testRunner) runTest(
shout(ctx, l, stdout, "--- PASS: %s (%s)", runID, durationStr)
}

shout(ctx, l, stdout, "##teamcity[testFinished name='%s' flowId='%s' duration='%d']",
t.Name(), runID, t.duration().Milliseconds())
if teamCity {
shout(ctx, l, stdout, "##teamcity[testFinished name='%s' flowId='%s' duration='%d']",
t.Name(), runID, t.duration().Milliseconds())
}
}

if teamCity {
Expand Down

0 comments on commit 189cbad

Please sign in to comment.