[dts] [PATCH V2 03/17]loopback_virtio_user_server_mode: update mpps value to check perf
Xiao Qimai
qimaix.xiao at intel.com
Fri Jun 5 11:18:10 CEST 2020
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_loopback_virtio_user_server_mode.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_loopback_virtio_user_server_mode.py b/tests/TestSuite_loopback_virtio_user_server_mode.py
index 32ee1c3..742aa09 100644
--- a/tests/TestSuite_loopback_virtio_user_server_mode.py
+++ b/tests/TestSuite_loopback_virtio_user_server_mode.py
@@ -111,7 +111,7 @@ class TestLoopbackVirtioUserServerMode(TestCase):
start the testpmd of vhost-user and virtio-user
start to send packets
"""
- session_rx.send_expect("start", "testpmd> ", 30)
+ session_rx.send_command("start", 3)
session_tx.send_expect("start tx_first 32", "testpmd> ", 30)
def check_port_throughput_after_port_stop(self):
@@ -176,14 +176,15 @@ class TestLoopbackVirtioUserServerMode(TestCase):
"""
results = 0.0
results_row = []
+ self.vhost.send_expect("show port stats all", "testpmd>", 60)
for i in range(10):
out = self.vhost.send_expect("show port stats all", "testpmd>", 60)
- time.sleep(5)
+ time.sleep(1)
lines = re.search("Rx-pps:\s*(\d*)", out)
result = lines.group(1)
results += float(result)
Mpps = results / (1000000 * 10)
- self.verify(Mpps > 0, "port can not receive packets")
+ self.verify(Mpps > 5, "port can not receive packets")
results_row.append(case_info)
results_row.append('64')
--
1.8.3.1
More information about the dts
mailing list