From: Filip Tehlar Date: Thu, 16 Mar 2023 12:52:54 +0000 (+0100) Subject: hs-test: check exit value of ab/wrk X-Git-Tag: v23.10-rc0~131 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=890eced9171388a62ad9dbd810627cad51e53208;p=vpp.git hs-test: check exit value of ab/wrk Type: test Signed-off-by: Filip Tehlar Change-Id: I967e91e4ea97edff427013c92376b388d6ce5d85 --- diff --git a/extras/hs-test/http_test.go b/extras/hs-test/http_test.go index 87130b7e47c..310dc8331ee 100644 --- a/extras/hs-test/http_test.go +++ b/extras/hs-test/http_test.go @@ -89,8 +89,9 @@ func runNginxPerf(s *NoTopoSuite, mode, ab_or_wrk string) error { cmd := exec.Command(exeName, args...) s.log(cmd) - o, _ := cmd.CombinedOutput() + o, err := cmd.CombinedOutput() s.log(string(o)) + s.assertNil(err) s.assertNotEmpty(o) return nil }