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 2C851A0A0F; Fri, 9 Apr 2021 04:46:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0137D4068E; Fri, 9 Apr 2021 04:46:10 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 656154014D for ; Fri, 9 Apr 2021 04:46:08 +0200 (CEST) IronPort-SDR: LlHZC/CtUVZBH2gfA8Q6Z1MKxK0HUJXdrSAfwg5O6MD2tDngburk3xibtR2TgpS2HOG+Zxrt7K vyqmEpItXy9Q== X-IronPort-AV: E=McAfee;i="6000,8403,9948"; a="173152757" X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="173152757" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 19:46:06 -0700 IronPort-SDR: uNU+j6KmmltStErpiixRMNa8pLAixp4rL4fwYwblBcYDNskm6GI7b9frEEyJFpDqPxA1xi0SX1 64hLauwcZkAA== X-IronPort-AV: E=Sophos;i="5.82,208,1613462400"; d="scan'208";a="422526011" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2021 19:46:04 -0700 From: Ling Wei To: dts@dpdk.org Cc: Ling Wei Date: Fri, 9 Apr 2021 10:44:29 +0800 Message-Id: <20210409024429.253255-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..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