From patchwork Thu Sep 8 05:53:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 116076 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 5B2ECA0548; Thu, 8 Sep 2022 07:53:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DE62B42B7C; Thu, 8 Sep 2022 07:53:38 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id A07B342B7B for ; Thu, 8 Sep 2022 07:53:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662616416; x=1694152416; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ei9XsYyB31hHyiHFrJSfx8YH3OfXSDvc4ucMTbIISgA=; b=ZmmhQMRpqKuYUlYiSUGKOZtHpWEEpsBEUu5W4MfhT7Na2rQc+UqUCHfT yUMKzQVuHq8Jfgi7QNkHFYxLamD4yGopQmHnpRX/wqWPoV6FdtrknykqT gahvYT3U6ok2OW0tPoCly0rnqqcDmsGbhBgS4PgSBEMvW6if1iKtTmbId X6VmutSxOtvM20yx25OxtWBjrThetNaeWqs8CP8WIHQBKEvvJ5f7LKobp h66NT3aJTg3hhU4SNydPBIOUgMXNGtDzvwtXhlva7xDDJgrtGYLR6mi69 a+Yb6aI0DaEwh13otH7eH1XLGPxpndu61MNn7haNdkEP9daIDC5xjmnZa A==; X-IronPort-AV: E=McAfee;i="6500,9779,10463"; a="295809968" X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="295809968" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:35 -0700 X-IronPort-AV: E=Sophos;i="5.93,299,1654585200"; d="scan'208";a="644931804" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 22:53:34 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V2 1/2] tests/dual_vlan: optimize script case vlan_tpid_config add check tpid Date: Thu, 8 Sep 2022 13:53:47 +0800 Message-Id: <20220908055348.32751-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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 case vlan_tpid_config add check tpid. Signed-off-by: Weiyuan Li Acked-by: Fu, Qi --- v2: -Patch conflict modification tests/TestSuite_dual_vlan.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index 15d6f2b2..87c5325b 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -502,7 +502,7 @@ class TestDualVlan(TestCase): def test_vlan_tpid_config(self): """ - Configure receive port out vlan TPID + Configure receive port inner VLAN TPID """ self.verify( self.nic @@ -524,6 +524,7 @@ class TestDualVlan(TestCase): self.vlan_send_packet(outvlan, invlan) out = self.get_tcpdump_package() + self.verify("0x8100" in out, "tpid is error: " + out) self.verify("vlan %s" % outvlan in out, "vlan tpid disable error: " + out) self.verify("vlan %s" % invlan in out, "vlan tpid disable error: " + out) @@ -531,6 +532,7 @@ class TestDualVlan(TestCase): self.vlan_send_packet(outvlan, invlan) out = self.get_tcpdump_package() + self.verify("0x8100" in out, "tpid is error: " + out) self.verify( out is not None and "vlan" not in out, "vlane tpid enable error: " + out )