From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 46E5C6CA2 for ; Tue, 27 Mar 2018 02:59:12 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2018 17:59:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,366,1517904000"; d="scan'208";a="41473526" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 26 Mar 2018 17:59:09 -0700 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Tue, 27 Mar 2018 09:00:24 +0800 Message-Id: <1522112424-97796-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/uni_pkt:Modify the letter case. X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 00:59:15 -0000 Because self.nic. lower () changes the network card name to lowercase, causing the network card name to not match with self.nic.lower(). Signed-off-by: zhu,shuai --- tests/TestSuite_uni_pkt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index e11b482..db065eb 100644 --- a/tests/TestSuite_uni_pkt.py +++ b/tests/TestSuite_uni_pkt.py @@ -115,7 +115,7 @@ class TestUniPacket(TestCase): """ checked that whether L3 and L4 packet can be normally detected. """ - if "fortville" in self.nic.lower() or "fortpark_TLV" in self.nic.lower(): + if "fortville" in self.nic.lower() or "fortpark_tlv" in self.nic.lower(): outerL4Type = "L4_NONFRAG" ipv4_default_packet_type = ["L2_ETHER", "L3_IPV4_EXT_UNKNOWN"] elif "niantic" in self.nic.lower() or "i350" in self.nic.lower(): @@ -146,7 +146,7 @@ class TestUniPacket(TestCase): """ checked that whether IPv6 and L4 packet can be normally detected. """ - if "fortville" in self.nic.lower() or "fortpark_TLV" in self.nic.lower(): + if "fortville" in self.nic.lower() or "fortpark_tlv" in self.nic.lower(): outerL4Type = "L4_NONFRAG" ipv6_default_packet_type = ["L2_ETHER", "L3_IPV6_EXT_UNKNOWN"] elif "niantic" in self.nic.lower() or "i350" in self.nic.lower(): -- 1.9.3