test suite reviews and discussions
 help / color / mirror / Atom feed
From: Ling Wei <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Ling Wei <weix.ling@intel.com>
Subject: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value
Date: Fri,  9 Apr 2021 10:44:29 +0800	[thread overview]
Message-ID: <20210409024429.253255-1-weix.ling@intel.com> (raw)

Because of repeat iperf test on FVL-40g nic, the result 
is unstable, so use 20Gb/s as check value.

Signed-off-by: Ling Wei <weix.ling@intel.com>
---
 tests/TestSuite_pvp_vhost_user_reconnect.py | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_pvp_vhost_user_reconnect.py b/tests/TestSuite_pvp_vhost_user_reconnect.py
index bd1f3937..4be19c5a 100644
--- a/tests/TestSuite_pvp_vhost_user_reconnect.py
+++ b/tests/TestSuite_pvp_vhost_user_reconnect.py
@@ -174,7 +174,7 @@ class TestPVPVhostUserReconnect(TestCase):
         if packed is True:
             setting_args = "%s,packed=on" % setting_args
         for i in range(self.vm_num):
-            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
+            vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample_copy')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
             vm_params['opt_path'] = './vhost-net%d' % (i)
@@ -391,6 +391,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -400,7 +402,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data >= self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -413,7 +416,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def test_perf_packed_ring_reconnet_one_vm(self):
@@ -494,6 +498,8 @@ class TestPVPVhostUserReconnect(TestCase):
         self.config_vm_intf()
         self.start_iperf()
         self.before_data = self.iperf_result_verify(vm_cycle, 'before reconnet')
+        # Because of repeat iperf test on FVL-40g nic, the result is unstable, so use 15Gb/s as check value.
+        self.check_data = 15.000
 
         vm_cycle = 1
         # reconnet from vhost
@@ -503,7 +509,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.launch_testpmd_as_vhost_user_with_no_pci()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vhost')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after reconnect from vhost'.format(self.check_data))
 
         # reconnet from VM
         self.logger.info('now reconnect from vm')
@@ -515,7 +522,8 @@ class TestPVPVhostUserReconnect(TestCase):
             self.config_vm_intf()
             self.start_iperf()
             self.reconnect_data = self.iperf_result_verify(vm_cycle, 'reconnet from vm')
-            self.check_reconnect_perf()
+            self.verify(self.reconnect_data > self.check_data,
+                        'iperf test result lower than {0} after recconnect from vm'.format(self.check_data))
         self.result_table_print()
 
     def tear_down(self):
-- 
2.25.1


             reply	other threads:[~2021-04-09  2:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-09  2:44 Ling Wei [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-09  2:47 Ling Wei
2021-04-09  2:51 ` Ling, WeiX
2021-04-12  2:48   ` Wang, Yinan
2021-04-12  5:34     ` Tu, Lijuan
2021-04-07  9:02 Ling Wei
2021-04-07  9:07 ` Ling, WeiX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210409024429.253255-1-weix.ling@intel.com \
    --to=weix.ling@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).