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 55E34A0543; Tue, 5 Jul 2022 08:47:36 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4BD574021D; Tue, 5 Jul 2022 08:47:36 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 3F4AF400D7 for ; Tue, 5 Jul 2022 08:47:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657003654; x=1688539654; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZmRNfkFtgPSuLKSe4PNxXyKRdKtrki+nOw+4MKwUaQE=; b=I5NmbCo2SriQEntk8neyToOz9iKP0ee+/6oHEz6yBfCncLNcaA4rBFv4 rkysHU8hZJsALMs836uDEgwT7IET2fKyBiEPIK6S4aGvj8ikZ8lU1g8PR XqdUW1a5VN9TRqWIT7PWuOp2YT2C6sLZfmtagahpAKSRsYX23R/NFhbuU u40ZgwDd10vvKk9ecgVlCY1o7owU8dVj07Tt2duEdQLL2v+ElJ9w4ELn3 Td3q5rVrvi64wzhIcCIPYQJW/riZ6fwiPEVikYkXb2XVPknouDXXMOuvO dX8WSfyBlqAQ+rMtuZga9Jy9PsW2IJWl94pU4Rpbvwn5kzjWtzPQIlVqa g==; X-IronPort-AV: E=McAfee;i="6400,9594,10398"; a="263691723" X-IronPort-AV: E=Sophos;i="5.92,245,1650956400"; d="scan'208";a="263691723" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 23:47:33 -0700 X-IronPort-AV: E=Sophos;i="5.92,245,1650956400"; d="scan'208";a="567484052" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 23:47:32 -0700 From: Lingli Chen To: dts@dpdk.org Cc: Lingli Chen Subject: [dts][PATCH V2 2/2] tests/queue_start_stop: modify script according to dpdk code change Date: Tue, 5 Jul 2022 02:10:13 -0400 Message-Id: <20220705061013.33315-2-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220705061013.33315-1-linglix.chen@intel.com> References: <20220705061013.33315-1-linglix.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: 8bit 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 queue_start_stop: after set “port 0 txq 0 stop”, no print in testpmd. Signed-off-by: Lingli Chen --- test_plans/queue_start_stop_test_plan.rst | 2 +- tests/TestSuite_queue_start_stop.py | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/test_plans/queue_start_stop_test_plan.rst b/test_plans/queue_start_stop_test_plan.rst index cf660710..e895076d 100644 --- a/test_plans/queue_start_stop_test_plan.rst +++ b/test_plans/queue_start_stop_test_plan.rst @@ -43,7 +43,7 @@ This case support PF (Intel® Ethernet 700 Series), VF (Intel® Ethernet 700 Ser #. Start packet generator to transmit and not receive packets #. Run "port 0 rxq 0 start" to start rxq 0 in port 0 #. Run "port 1 txq 1 stop" to start txq 0 in port 1 -#. Start packet generator to transmit and not receive packets but in testpmd it is a "ports 0 queue 0 received 1 packages" print +#. Start packet generator to transmit and not receive packets #. Run "port 1 txq 1 start" to start txq 0 in port 1 #. Start packet generator to transmit and receive packets #. Test it again with VF diff --git a/tests/TestSuite_queue_start_stop.py b/tests/TestSuite_queue_start_stop.py index 1df59a1b..f5028e8b 100644 --- a/tests/TestSuite_queue_start_stop.py +++ b/tests/TestSuite_queue_start_stop.py @@ -134,21 +134,9 @@ class TestQueueStartStop(TestCase): self.dut.send_expect("port 0 txq 0 stop", "testpmd>") self.dut.send_expect("start", "testpmd>") self.check_forwarding([0, 0], self.nic, received=False) - out = self.dut.get_session_output() except Exception as e: raise IOError("queue start/stop forward failure: %s" % e) - if self.nic == "cavium_a063": - self.verify( - "ports 0 queue 0 receive 4 packages" in out, - "start queue revice package failed, out = %s" % out, - ) - else: - self.verify( - "ports 0 queue 0 receive 1 packages\r\n" * 4 in out, - "start queue revice package failed, out = %s" % out, - ) - try: # start tx queue test print("test start rx and tx queue") -- 2.17.1