From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id D1973A046B for ; Tue, 20 Aug 2019 11:47:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C6E771BEBF; Tue, 20 Aug 2019 11:47:34 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 532DD1BEB0 for ; Tue, 20 Aug 2019 11:47:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 02:47:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,408,1559545200"; d="scan'208";a="179696408" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 20 Aug 2019 02:47:32 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 20 Aug 2019 02:47:32 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 20 Aug 2019 02:47:31 -0700 Received: from shsmsx105.ccr.corp.intel.com ([169.254.11.15]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.250]) with mapi id 14.03.0439.000; Tue, 20 Aug 2019 17:47:30 +0800 From: "Zhang, YanX A" To: "dts@dpdk.org" Thread-Topic: [dts][PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages Thread-Index: AQHVVzwkuJ8JM1Bp6EOGchS2sjSc+KcDyhJA Date: Tue, 20 Aug 2019 09:47:29 +0000 Message-ID: <2C49E4B25FAD1D419F7564D633EF72E1F412C7@SHSMSX105.ccr.corp.intel.com> References: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com> In-Reply-To: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the number of packages X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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" Tested-by: Zhang, YanX A -----Original Message----- From: Zhang, YanX A=20 Sent: Tuesday, August 20, 2019 5:51 PM To: dts@dpdk.org Cc: Zhang, YanX A Subject: [dts][PATCH V1] tests/TestSuite_runtime_vf_queue_number:Reduce the= number of packages Reduce the number of unneeded packets and optimize script run time. Signed-off-by: zhang,yan --- tests/TestSuite_runtime_vf_queue_number.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_runtime_vf_queue_number.py b/tests/TestSuite_r= untime_vf_queue_number.py index 3e04489..dca1937 100644 --- a/tests/TestSuite_runtime_vf_queue_number.py +++ b/tests/TestSuite_runtime_vf_queue_number.py @@ -273,13 +273,14 @@ class TestRuntimeVfQn(TestCase): gest_eal_param =3D '-w %s --file-prefix=3Dtest2' % self.vm_dut_0.p= orts_info[0]['pci'] self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) for valid_qn in range(1, 17): + count =3D valid_qn * 20 if valid_qn =3D=3D 1: self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, = eal_param=3Dgest_eal_param, param=3D' --rxq=3D1 --txq=3D1') self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd("set promisc all off", "testp= md> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key i= pv4 %s' % RSS_KEY) - self.verify_result(valid_qn, 500) + self.verify_result(valid_qn, count) self.vm0_testpmd.execute_cmd('quit', '# ') else: self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, = eal_param=3Dgest_eal_param, @@ -287,7 +288,7 @@ class TestRuntimeVfQn(TestC= ase): self.vm0_testpmd.execute_cmd("set promisc all off", "testp= md> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key i= pv4 %s' % RSS_KEY) - self.verify_result(valid_qn, 500) + self.verify_result(valid_qn, count) self.vm0_testpmd.execute_cmd('quit', '# ') =20 def test_set_invalid_vf_qn_in_testpmd(self): @@ -323,19 +324,20 @@ class TestRuntimeVfQn(TestCase): self.vm0_testpmd =3D PmdOutput(self.vm_dut_0) self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_para= m=3Dgest_eal_param, param=3D'') for valid_qn in range(1, 17): + count =3D valid_qn * 20 if valid_qn =3D=3D 1: guest_cmds =3D self.testpmd_config_cmd_list(1) guest_cmds.insert(0, ['set fwd mac']) guest_cmds.insert(0, ['set promisc all off']) guest_cmds.insert(0, ['set verbose 1']) self.execute_testpmd_cmd(guest_cmds) - self.verify_result(valid_qn, 500) + self.verify_result(valid_qn, count) else: guest_cmds =3D self.testpmd_config_cmd_list(valid_qn) guest_cmds.insert(0, ['set fwd mac']) guest_cmds.insert(0, ['set promisc all off']) self.execute_testpmd_cmd(guest_cmds) - self.verify_result(valid_qn, 500) + self.verify_result(valid_qn, count) self.vm0_testpmd.execute_cmd('quit', '# ') =20 def test_set_invalid_vf_qn_with_testpmd_func_cmd(self): -- 2.17.2