From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 518C5A0546; Wed, 7 Apr 2021 11:04:17 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2807A1410EB; Wed, 7 Apr 2021 11:04:17 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id EE0B1407FF for ; Wed, 7 Apr 2021 11:04:14 +0200 (CEST) IronPort-SDR: wblRNum2VlE1RH8W9jBy3BEjcgZaBT0n2J86la0SRIPTUDyGZVqRs7avZtSnjZ0liAJCBxrCUk KQsI9eKpWckA== X-IronPort-AV: E=McAfee;i="6000,8403,9946"; a="278527974" X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="278527974" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 02:04:13 -0700 IronPort-SDR: 3vmQSNgBRqnzE8IA1uxbhnGNh/q8u4/tvqNHh5zU6uZDD8TbYAd2ERk+LE35FGMLsy7tlpE+NB xxySxjhRyC/w== X-IronPort-AV: E=Sophos;i="5.82,203,1613462400"; d="scan'208";a="421611038" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 02:04:09 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Wed, 7 Apr 2021 17:02:36 +0800 Message-Id: <20210407090236.255026-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/pvp_vhost_user_reconnect: modify iperf test case expected value X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" 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 --- 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..f9843ebe 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 20Gb/s as check value. + self.check_data = 20.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 recone'.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 recone'.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 20Gb/s as check value. + self.check_data = 20.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 recone'.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 recone'.format(self.check_data)) self.result_table_print() def tear_down(self): -- 2.25.1