hs-test: don't assert iperf results on GCOV builds 80/42880/1
authorAdrian Villin <[email protected]>
Wed, 7 May 2025 09:52:21 +0000 (11:52 +0200)
committerAdrian Villin <[email protected]>
Wed, 7 May 2025 09:52:21 +0000 (11:52 +0200)
Type: test

Change-Id: Idd332b5ad13de33b155906876f177941c01cd4bd
Signed-off-by: Adrian Villin <[email protected]>
extras/hs-test/infra/hst_suite.go

index 84e8089..9a4d8f8 100644 (file)
@@ -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 {