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 3DD73A0545; Tue, 11 Oct 2022 11:15:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 389A742D05; Tue, 11 Oct 2022 11:15:31 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 69DC340F19 for ; Tue, 11 Oct 2022 11:15:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665479729; x=1697015729; h=from:to:cc:subject:date:message-id; bh=25gAjvlJTLtwlSvRhT8zfrWQp/hOJtOWndc5cgfzos4=; b=SYsqKWLXrOVRzeTGfLGoNI4ZZ5U0AbSVkhTn5G+ey67FHS2TCUVmNleZ scXc8JoFnpCeev/kKcD7Oy4LjvHm3h7dlFaIQ+Y0S3kECHVHjcRDZ1E7o cQFDdOLWPh8tdbsI8amGs3A5QUpjEJEmaOi98ZhCMFP6tzT0MBMbSINwT xc/ItJinRMaJA4G2Xz/2Z+GvkRZrhMEXBHbf8EA9TcQ5OYAC/xfETCR9D hgvz+OIytZfSg4sqE8t1/k0sx3JEgHaNieMsJF4CfcthpDq9OJqKlbXNV E5Eysb3tw2VA9pc6aAsJX5rANdkkR9qKogeN0haxmNTqLSK+rJ6VjOmRR g==; X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="291769198" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="291769198" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 02:15:28 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10496"; a="730905303" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="730905303" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 02:15:26 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V3 1/2] tests/dynamic_queue: modify script according to dpdk code change Date: Tue, 11 Oct 2022 04:25:43 -0400 Message-Id: <20221011082544.20585-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 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 According to dpdk commit 3c4426db54fc(app/testpmd: do not poll stopped queues). modify dynamic_queue: Tx stopped queue not display Signed-off-by: Lingli Chen --- test_plans/dynamic_queue_test_plan.rst | 4 ++-- tests/TestSuite_dynamic_queue.py | 15 ++++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/test_plans/dynamic_queue_test_plan.rst b/test_plans/dynamic_queue_test_plan.rst index 96cfcb8a..d22068a0 100644 --- a/test_plans/dynamic_queue_test_plan.rst +++ b/test_plans/dynamic_queue_test_plan.rst @@ -94,7 +94,7 @@ Stop one Tx queue on port 0:: Set txonly forward, start testpmd -Start testpmd, then stop, check this stopped queue only transmits 255 packets +Start testpmd, then stop, check this stopped queue not display Setup this stopped queue on the port:: @@ -162,7 +162,7 @@ Stop one Tx queue on port 0:: Set txonly forward, start testpmd -Start testpmd, then stop, check this stopped queue only transmits 255 packets +Start testpmd, then stop, check this stopped queue not display Reconfigure ring size as 512 for the stopped queues on port 0:: diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py index ebbe869c..5a826bd1 100644 --- a/tests/TestSuite_dynamic_queue.py +++ b/tests/TestSuite_dynamic_queue.py @@ -163,13 +163,14 @@ class TestDynamicQueue(TestCase): out = self.dut_testpmd.execute_cmd("stop") tx_num = qringsize - 1 - if self.nic in ["cavium_a063", "cavium_a064"]: - self.verify("TX-packets: 0" in out, "Fail to stop txq at runtime") - else: - # Check Tx stopped queue only transmits qringsize-1 packets - self.verify( - "TX-packets: %d" % tx_num in out, "Fail to stop txq at runtime" - ) + # check rxq start successful + self.verify("TX-packets:" in out, "txq start failed") + # check Tx stopped queue not display + self.verify( + "TX Port= 0/Queue={:>2}".format(queue) not in out, + "Fail to stop txq at runtime", + ) + if chgflag == 1: chg_qringsize = qringsize % 1024 + 256 if qringsize == 512: -- 2.17.1