commit ce07c573b93a67483a7495aa8cd54023a645d3f6
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Wed Apr 8 12:56:10 2015 +0200
Use receive rate as tracked value instead of send rate in UDP_STREAM.
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>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
test_modules/Netperf.py | 4 ++--
1 files 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