From 189cbad673d048e9aac7a913204abeec284b83ac Mon Sep 17 00:00:00 2001 From: Miral Gadani Date: Tue, 28 Mar 2023 17:51:47 +0000 Subject: [PATCH] roachtest: log ##teamcity[testFinished..] only on teamcity --- pkg/cmd/roachtest/test_runner.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/roachtest/test_runner.go b/pkg/cmd/roachtest/test_runner.go index 59d324cb0add..d5cb716589d9 100644 --- a/pkg/cmd/roachtest/test_runner.go +++ b/pkg/cmd/roachtest/test_runner.go @@ -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 {