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 E47A4A046B for ; Tue, 20 Aug 2019 11:46:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 97BEC1BEB2; Tue, 20 Aug 2019 11:46:14 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 19A011BEB0 for ; Tue, 20 Aug 2019 11:46:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Aug 2019 02:46:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,408,1559545200"; d="scan'208";a="189814095" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 20 Aug 2019 02:46:10 -0700 From: "zhang,yan" To: dts@dpdk.org Cc: "zhang,yan" Date: Tue, 20 Aug 2019 17:50:45 +0800 Message-Id: <1566294645-21844-1-git-send-email-yanx.a.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [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" 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_runtime_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 = '-w %s --file-prefix=test2' % self.vm_dut_0.ports_info[0]['pci'] self.vm0_testpmd = PmdOutput(self.vm_dut_0) for valid_qn in range(1, 17): + count = valid_qn * 20 if valid_qn == 1: self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param=' --rxq=1 --txq=1') self.vm0_testpmd.execute_cmd('set verbose 1') self.vm0_testpmd.execute_cmd("set promisc all off", "testpmd> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key ipv4 %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=gest_eal_param, @@ -287,7 +288,7 @@ class TestRuntimeVfQn(TestCase): self.vm0_testpmd.execute_cmd("set promisc all off", "testpmd> ") self.vm0_testpmd.execute_cmd("set fwd mac", "testpmd> ") self.vm0_testpmd.execute_cmd('port config 0 rss-hash-key ipv4 %s' % RSS_KEY) - self.verify_result(valid_qn, 500) + self.verify_result(valid_qn, count) self.vm0_testpmd.execute_cmd('quit', '# ') def test_set_invalid_vf_qn_in_testpmd(self): @@ -323,19 +324,20 @@ class TestRuntimeVfQn(TestCase): self.vm0_testpmd = PmdOutput(self.vm_dut_0) self.vm0_testpmd.start_testpmd(self.pmdout.default_cores, eal_param=gest_eal_param, param='') for valid_qn in range(1, 17): + count = valid_qn * 20 if valid_qn == 1: guest_cmds = 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 = 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', '# ') def test_set_invalid_vf_qn_with_testpmd_func_cmd(self): -- 2.17.2