From patchwork Wed Dec 21 06:54:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 121170 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02F6AA034C; Wed, 21 Dec 2022 08:52:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CD88540A7A; Wed, 21 Dec 2022 08:52:41 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 9C66840698 for ; Wed, 21 Dec 2022 08:52:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671609159; x=1703145159; h=from:to:cc:subject:date:message-id; bh=YQuUU5tULgNOZacZUgUI5cO7+Jm0Gpm2zE0UlHfPRpc=; b=Spcvro98PmISShpP2H/Uj3fRX7A7XM5tzG3OLfYEzAcuepOfFTYyLS7/ ZIhRlnYQRL4gh6M23LIXLL0vR7JdwfiZTjJvmzbXb8ALYvLukBr4WV2Y3 8NlXkAN/0EKK75sHx6igs6+shtMWpVEounu9qefEOx34Vk1zqb7JmqOWh vbTjhXzEVVT0QPZkPCXrxydxNnR0oE+Fp1AcckeJrTBzsYEe53zGB/jFT RkMr+AI9EQd1o3zjenzhD0+g/bZJVdmXPwfLWrIZ1iRBSmC9Q+C8MPhbj DDvD6iotBPshkupLejwOy/r/ULwqDKAqnfB8+6JmUSK19AaQmB4vh25c/ w==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="406050503" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="406050503" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 23:52:38 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="719860466" X-IronPort-AV: E=Sophos;i="5.96,262,1665471600"; d="scan'208";a="719860466" Received: from unknown (HELO localhost.localdomain) ([10.239.252.99]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 23:52:37 -0800 From: Lingli Chen To: dts@dpdk.org Cc: zhiminx.huang@intel.com, Lingli Chen Subject: [dts][PATCH V1] tests/*: add wait_link_status_up after start testpmd Date: Wed, 21 Dec 2022 01:54:46 -0500 Message-Id: <20221221065446.22316-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 optimize script: external_mempool_handler, mtu_update add wait_link_status_up after start testpmd to enhance script robustness. Signed-off-by: Lingli Chen --- tests/TestSuite_external_mempool_handler.py | 2 +- tests/TestSuite_mtu_update.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py index aa22a35a..92790b2e 100644 --- a/tests/TestSuite_external_mempool_handler.py +++ b/tests/TestSuite_external_mempool_handler.py @@ -53,7 +53,7 @@ class TestExternalMempool(TestCase): self.pmdout.start_testpmd("1S/2C/1T", "--portmask=0x3") self.pmdout.execute_cmd("set fwd mac") self.pmdout.execute_cmd("start") - + self.pmdout.wait_link_status_up('all') tgen_input = [] tx_port = self.tester.get_local_port(self.dut_ports[0]) rx_port = self.tester.get_local_port(self.dut_ports[1]) diff --git a/tests/TestSuite_mtu_update.py b/tests/TestSuite_mtu_update.py index 4fc3c335..8fe53e22 100644 --- a/tests/TestSuite_mtu_update.py +++ b/tests/TestSuite_mtu_update.py @@ -219,7 +219,7 @@ class TestMtuUpdate(TestCase): self.exec("port start all") self.exec("set fwd mac") self.exec("start") - self.pmdout.wait_link_status_up(self.dut_ports[0]) + self.pmdout.wait_link_status_up('all') """ On 1G NICs, when the jubmo frame MTU set > 1500, the software adjust it to MTU+4. """