From: Adrian Villin Date: Wed, 7 May 2025 09:52:21 +0000 (+0200) Subject: hs-test: don't assert iperf results on GCOV builds X-Git-Tag: v25.10-rc0~32 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F80%2F42880%2F1;p=vpp.git hs-test: don't assert iperf results on GCOV builds Type: test Change-Id: Idd332b5ad13de33b155906876f177941c01cd4bd Signed-off-by: Adrian Villin --- diff --git a/extras/hs-test/infra/hst_suite.go b/extras/hs-test/infra/hst_suite.go index 84e8089b0bf..9a4d8f809aa 100644 --- a/extras/hs-test/infra/hst_suite.go +++ b/extras/hs-test/infra/hst_suite.go @@ -412,8 +412,13 @@ func (s *HstSuite) AssertChannelClosed(timeout time.Duration, channel chan error EventuallyWithOffset(2, channel).WithTimeout(timeout).Should(BeClosed()) } -// Pass the parsed result struct and the minimum amount of data transferred in MB +// Pass the parsed result struct and the minimum amount of data transferred in MB. +// Won't do anything when testing a coverage build. func (s *HstSuite) AssertIperfMinTransfer(result IPerfResult, minTransferred int) { + if *IsCoverage { + s.Log("Coverage build; not asserting") + return + } if result.Start.Details.Protocol == "TCP" { s.AssertGreaterThan(result.End.TcpReceived.MBytes, minTransferred) } else {