From: Ondrej Lichtner <olichtne(a)redhat.com>
Iperf uses stderr to report warnings as well as error messages. However
the test can still run and report results. If there's an actual failure
to execute iperf indicates it by returning a non-zero return value. We
should therefore only report a Fail result on the measurement in case
iperf fails as well.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Tests/Iperf.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lnst/Tests/Iperf.py b/lnst/Tests/Iperf.py
index 970d994..0a14619 100644
--- a/lnst/Tests/Iperf.py
+++ b/lnst/Tests/Iperf.py
@@ -38,7 +38,6 @@ class IperfBase(BaseTestModule):
self._res_data["msg"] = "errors reported by iperf"
logging.error(self._res_data["msg"])
logging.error(self._res_data["stderr"])
- return False
if server.returncode > 0:
self._res_data["msg"] = "{} returncode = {}".format(
--
2.21.0