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 1B702A00C3; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0586D40DDB; Thu, 23 Jun 2022 09:29:21 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 5EE7B4069D for ; Thu, 23 Jun 2022 09:29:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655969359; x=1687505359; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=ASUCYegfs3BLuz/P57SDM7rI1ioA83jjXj1PkE8EZ9I=; b=E544jw+cCjvqw3IEtsocjkTJUV36cePXMBhc5TE/wkwrlhb+lCVuEdG+ FG+8+ygU2QkL1yuIXAxGNnSGmu8vmbO/lirUQCcWz5JQ9xDeNi7OrYRET 6Slo3OrcdFQb8j6aL6HLUfBTU3+cLLctd1sgblDU9n0DFZcTE2CPFCbc6 br6Eol5JcJc+twwyc6YaitxhemEWiLUdBsdZo/1fIOTACi3mgWZzYZVsK W1/eAwu9JWWi1tPZyFeswMJy81WyF1ecJ81wM5NpGcxTu8Svo5fVBDMCA 4i7kNlQenATuHhULqLXsBtaWcJruNFl6q98d8VR9YsfgJS2kTeXNHhxCS w==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="280697688" X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="280697688" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:18 -0700 X-IronPort-AV: E=Sophos;i="5.92,215,1650956400"; d="scan'208";a="592582597" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2022 00:29:16 -0700 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1 2/4] tests/dynamic_queue: modify script according to dpdk code change Date: Thu, 23 Jun 2022 02:53:34 -0400 Message-Id: <20220623065336.21482-3-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220623065336.21482-1-linglix.chen@intel.com> References: <20220623065336.21482-1-linglix.chen@intel.com> 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) Tx stopped queue not display Signed-off-by: Lingli Chen --- tests/TestSuite_dynamic_queue.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_dynamic_queue.py b/tests/TestSuite_dynamic_queue.py index ebbe869c..21fcba57 100644 --- a/tests/TestSuite_dynamic_queue.py +++ b/tests/TestSuite_dynamic_queue.py @@ -163,12 +163,16 @@ 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") + # Check Tx stopped queue not display + if queue < 10: + self.verify( + "TX Port= 0/Queue= %d" % queue not 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" + "TX Port= 0/Queue=%d" % queue not in out, + "Fail to stop txq at runtime", ) if chgflag == 1: chg_qringsize = qringsize % 1024 + 256 -- 2.17.1