From patchwork Mon Sep 5 09:42:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 115884 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 B977DA034C; Mon, 5 Sep 2022 11:42:41 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 986CD400D6; Mon, 5 Sep 2022 11:42:41 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 5B243400D4 for ; Mon, 5 Sep 2022 11:42:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662370960; x=1693906960; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=OyEi99WaKjMYVIspP8Ue/mCloZ+JZjKwJmpFM4HYmiA=; b=hVxkxcCXTXAAWerOgdHwCcRO+Tg7jxArR3ebsAS2REGyPdlsKzs3X5qm YfgNxzTfAJPa1ozktfKzyg4U3flBT564m4NtQQrmUTpP4FxlHkxRNDHP7 N7m60CUSYNC2Ax5SM6JtQDWQwt/Fmgcr0V+Rvy1Y3aZm+8Tbqy+tgSb4s TsAdn7sg5SNMIClP+yBzZI1Q0gNS/SeP2syeWRyg1Bkzwqs1KCOcRL6ly QiTwssPeLv+Ju1I53A3AejdHRzLiolY/TPXdxt+8W8vxEsm3PdT5X95Fx cRoT9D6SDtki+6ZRNeMLh7Le0NpIF9gPBySWaqq1eAN09+F9XJ9dPvOfj w==; X-IronPort-AV: E=McAfee;i="6500,9779,10460"; a="358067122" X-IronPort-AV: E=Sophos;i="5.93,290,1654585200"; d="scan'208";a="358067122" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 02:42:39 -0700 X-IronPort-AV: E=Sophos;i="5.93,290,1654585200"; d="scan'208";a="675219037" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2022 02:42:37 -0700 From: Weiyuan Li To: dts@dpdk.org, qi.fu@intel.com Cc: Weiyuan Li Subject: [dts][PATCH V1 1/2] tests/dual_vlan: optimize script and add check tpid Date: Mon, 5 Sep 2022 17:42:50 +0800 Message-Id: <20220905094251.16568-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 and add check tpid. Signed-off-by: Weiyuan Li --- tests/TestSuite_dual_vlan.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_dual_vlan.py b/tests/TestSuite_dual_vlan.py index 99f47a82..994a1d51 100644 --- a/tests/TestSuite_dual_vlan.py +++ b/tests/TestSuite_dual_vlan.py @@ -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 )