[dts] [PATCH V2 17/17]vm2vm_virtio_pmd: update mpps value to check perf
Xiao Qimai
qimaix.xiao at intel.com
Fri Jun 5 11:18:24 CEST 2020
Signed-off-by: Xiao Qimai <qimaix.xiao at intel.com>
---
tests/TestSuite_vm2vm_virtio_pmd.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py
index d4ffdc7..7fea5bf 100644
--- a/tests/TestSuite_vm2vm_virtio_pmd.py
+++ b/tests/TestSuite_vm2vm_virtio_pmd.py
@@ -222,14 +222,15 @@ class TestVM2VMVirtioPMD(TestCase):
def calculate_avg_throughput(self):
results = 0.0
+ self.vhost_user.send_expect("show port stats 1", "testpmd> ", 60)
for i in range(10):
out = self.vhost_user.send_expect("show port stats 1", "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, "%s can not receive packets" % self.running_case)
+ self.verify(Mpps > 4.5, "%s can not receive packets" % self.running_case)
return Mpps
def update_table_info(self, case_info, frame_size, Mpps, path):
@@ -246,7 +247,7 @@ class TestVM2VMVirtioPMD(TestCase):
"""
# start to send packets
self.vm_dut[0].send_expect("set fwd rxonly", "testpmd> ", 10)
- self.vm_dut[0].send_expect("start", "testpmd> ", 10)
+ self.vm_dut[0].send_command("start", 3)
self.vm_dut[1].send_expect("set fwd txonly", "testpmd> ", 10)
self.vm_dut[1].send_expect("set txpkts 64", "testpmd> ", 10)
self.vm_dut[1].send_expect("start tx_first 32", "testpmd> ", 10)
--
1.8.3.1
More information about the dts
mailing list