From patchwork Fri Mar 19 16:57:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lingli Chen X-Patchwork-Id: 89546 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 819B2A0562; Fri, 19 Mar 2021 09:33:09 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5892C140F33; Fri, 19 Mar 2021 09:33:09 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 108D8140F32 for ; Fri, 19 Mar 2021 09:33:07 +0100 (CET) IronPort-SDR: 1sjifHbkM4ZQCTrRa1Lpdltzk4B1RSsc2DUZD7nIJ7TpFU4P68QZkpgx9ptntD/Jw6Pm7m4lte C8dZjRVZpS/g== X-IronPort-AV: E=McAfee;i="6000,8403,9927"; a="177440622" X-IronPort-AV: E=Sophos;i="5.81,261,1610438400"; d="scan'208";a="177440622" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2021 01:33:04 -0700 IronPort-SDR: LDhUbC9SIBoOfmFAoswU8M4rgwF5nOvjUF6JwIxRYiP21eZxfoxga2XsK+qZgrYemKh6gegzuc OaId64BuG+LQ== X-IronPort-AV: E=Sophos;i="5.81,261,1610438400"; d="scan'208";a="406697093" Received: from unknown (HELO localhost.localdomain) ([10.240.183.102]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2021 01:33:02 -0700 From: Chen Lingli To: dts@dpdk.org Cc: Chen Lingli Date: Fri, 19 Mar 2021 16:57:50 +0000 Message-Id: <20210319165750.8295-1-linglix.chen@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/shutdown_api: replace new commands 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 Sender: "dts" According to dpdk commit ecf86ccb4b13 ("app/testpmd: remove duplicated offload display"). replace new commands Signed-off-by: Chen Lingli Tested-by: Chen Lingli --- tests/TestSuite_shutdown_api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index c647870d..79d0bdd7 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -621,9 +621,8 @@ class TestShutdownApi(TestCase): vlan_jumbo_size = jumbo_size + 4 else: vlan_jumbo_size = jumbo_size - out = self.dut.send_expect("show port cap %d" % port, "testpmd> ") - state = re.findall("VLAN stripped:\s*([a-z]*)", out) - if state[0] == 'on': + out = self.dut.send_expect("show port %d rx_offload configuration" % port, "testpmd> ") + if 'VLAN_STRIP' in out: vlan_strip = True else: vlan_strip = False