hs-test: check exit value of ab/wrk

Type: test

Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Change-Id: I967e91e4ea97edff427013c92376b388d6ce5d85
This commit is contained in:
Filip Tehlar
2023-03-16 13:52:54 +01:00
parent e7625d0856
commit 890eced917

View File

@ -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
}