If execution of netperf fails, for example because selected test is not compiled,
show the output for more detailed explanation.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
test_modules/Netperf.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test_modules/Netperf.py b/test_modules/Netperf.py
index 21d18b8..868cca0 100644
--- a/test_modules/Netperf.py
+++ b/test_modules/Netperf.py
@@ -249,8 +249,10 @@ class Netperf(TestGeneric):
except OSError as e:
if e.errno == errno.EINTR:
client.kill()
+
+ output = client.read_nonblocking()
+
if ret_code == 0:
- output = client.read_nonblocking()
results.append(self._parse_output(output))
rates.append(results[-1]["rate"])
--
2.4.3