UDP_STREAM test shows 2 values, first is send rate and second one is receive rate.
We are more interested in receive rate, so this patch changes UDP_STREAM output
parsing to parse receive rate instead.
Signed-off-by: Jiri Prochazka <jprochaz(a)redhat.com>
---
test_modules/Netperf.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/test_modules/Netperf.py b/test_modules/Netperf.py
index 1994412..a098d5a 100644
--- a/test_modules/Netperf.py
+++ b/test_modules/Netperf.py
@@ -80,8 +80,8 @@ class Netperf(TestGeneric):
testname = self.get_opt("testname")
if testname == "UDP_STREAM":
# pattern for UDP_STREAM throughput output
- # decimal decimal float decimal decimal (float)
- pattern_udp_stream =
"\d+\s+\d+\s+\d+\.\d+\s+\d+\s+\d+\s+(\d+(\.\d+){0,1})"
+ # decimal float decimal (float)
+ pattern_udp_stream = "\d+\s+\d+\.\d+\s+\d+\s+(\d+(\.\d+){0,1})\n"
r2 = re.search(pattern_udp_stream, output.lower())
elif testname == "TCP_STREAM":
# pattern for TCP_STREAM throughput output
--
2.1.0
Show replies by date