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 0A63BA0556; Mon, 17 Oct 2022 07:16:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D86A840143; Mon, 17 Oct 2022 07:16:33 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 9D7C9400D7 for ; Mon, 17 Oct 2022 07:16:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665983792; x=1697519792; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zE+hlek0hH2AS1FHmmQ6g2PXalVzUjRAhZQLMX/N7Ek=; b=J034YR1JdvNpHpfxM6Mv/8E+wQBopPl5n5bHggZXRxOPC8f/Qmz6qNdp YO0EAsPpnMfWSwzXcSYR0kPOiT9SNE4L/rh1ze+xeoaZidLn1dIGhYf8y FOD0ZIAfdngo2LfqYTPWSXncS4E6c1wWkXOHwINoimjPu5ObJOLme+jPF U6NKnCqUJmBbaVimrFHDV5jCNILV6ukLaUSO5zp/yk2XJ4oNvmoYr6wgQ SZUZjuWP7EkMczr3xr20XqqDkkkcG/LMKadh1li4UwaV87jsBMSNZ0372 hcDYSR7aU61hHUMVfpHL4NL9W5jErjQfXEXSZGyC+Z8DM507nNvqBtxAm A==; X-IronPort-AV: E=McAfee;i="6500,9779,10502"; a="293074904" X-IronPort-AV: E=Sophos;i="5.95,190,1661842800"; d="scan'208";a="293074904" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2022 22:16:31 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10502"; a="696919233" X-IronPort-AV: E=Sophos;i="5.95,190,1661842800"; d="scan'208";a="696919233" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2022 22:16:28 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1] tests/port_control: Optimize script check the port status after restarting the port Date: Mon, 17 Oct 2022 13:16:51 +0800 Message-Id: <20221017051651.21306-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 The port status should be checked when the port is stopped and restarted, not after the pmd is started. Signed-off-by: Weiyuan Li --- tests/TestSuite_port_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_port_control.py b/tests/TestSuite_port_control.py index bdb1b0ad..71b2ed87 100644 --- a/tests/TestSuite_port_control.py +++ b/tests/TestSuite_port_control.py @@ -124,9 +124,9 @@ class TestPortControl(TestCase): def start_pmd_port(self, terminal): terminal.execute_cmd("port start all") + terminal.wait_link_status_up("all") terminal.execute_cmd("start") time.sleep(5) - terminal.wait_link_status_up("all", timeout=5) ret = terminal.get_port_link_status(self.port_id_0) self.verify(ret == "up", "port not up!") -- 2.27.0