From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 8B3BC8E6E for ; Tue, 13 Oct 2015 08:21:03 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 12 Oct 2015 23:21:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,676,1437462000"; d="scan'208";a="579545478" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 12 Oct 2015 23:21:01 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t9D6L0v6009569; Tue, 13 Oct 2015 14:21:00 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t9D6KuZ4032304; Tue, 13 Oct 2015 14:20:58 +0800 Received: (from dayuqiu@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9D6KuhA032300; Tue, 13 Oct 2015 14:20:56 +0800 From: Michael Qiu To: dts@dpdk.org Date: Tue, 13 Oct 2015 14:20:54 +0800 Message-Id: <1444717254-32269-1-git-send-email-michael.qiu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dts] [PATCH] framework/dut: Fix upper and lower for MAC address 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, 13 Oct 2015 06:21:04 -0000 When MAC address are actually the same but different upper and lower, it should be take as the same. Signed-off-by: Michael Qiu --- framework/dut.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/dut.py b/framework/dut.py index 1199fc6..70bd146 100644 --- a/framework/dut.py +++ b/framework/dut.py @@ -778,9 +778,9 @@ class Dut(Crb): for key in ['intf', 'mac', 'numa', 'peer', 'source']: if key in port_cfg: - if key in port and port_cfg[key] != port[key]: + if key in port and port_cfg[key].lower() != port[key].lower(): self.logger.warning("CONFIGURED %s NOT SAME AS SCANNED!!!" % (key.upper())) - port[key] = port_cfg[key] + port[key] = port_cfg[key].lower() def map_available_ports(self): """ -- 1.9.3