From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 8A265AC1092 for ; Wed, 28 Feb 2024 09:58:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=D0JGZxNbwygy3A1V+0WRUs3eURvbW8VITudkasxgRq0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1709114294; v=1; b=L3dolyEbRrkT0tCCYCU2d+YAV8RM021xvXWu9hzenHCQvDEBpLGcRXnr6bBpKYRT5mQ4LECx sHtTrraXXFM2HMd7Ca0dk2UNE7f+80BxpH+BP3/K8+xF/xGN3OPrrfX/Fp69geef2TkSBNnkB/5 pMBdgyMM4bBQRiPTdtDpkuAs= X-Received: by 127.0.0.2 with SMTP id UzYlYY7687511xncuFBbfQU6; Wed, 28 Feb 2024 01:58:14 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) by mx.groups.io with SMTP id smtpd.web11.9907.1709114293266439564 for ; Wed, 28 Feb 2024 01:58:13 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3667618" X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="3667618" X-Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 01:58:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,190,1705392000"; d="scan'208";a="7940917" X-Received: from basfe006.gar.corp.intel.com ([10.66.244.178]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2024 01:58:05 -0800 From: "Ashraf Ali S" To: devel@edk2.groups.io Cc: Ashraf Ali , Rebecca Cran , Liming Gao , Bob Feng , Yuwei Chen , Chaganty Rangasai V Subject: [edk2-devel] [PATCH] BaseTools: FMMT Skip empty Lines while parsing FMMTConfig.ini Date: Wed, 28 Feb 2024 15:27:04 +0530 Message-ID: MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ashraf.ali.s@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: rdiODGmWK5IqKwCazRzJ7YUax7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=L3dolyEb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io When the FMMTConf.ini file has empty lines then it used to throw errors GuidTool load error!, this patch is to skip checking for empty lines in the ini file Cc: Rebecca Cran Cc: Liming Gao Cc: Bob Feng Cc: Yuwei Chen Cc: Chen Christine Cc: Chaganty Rangasai V Signed-off-by: Ashraf Ali --- BaseTools/Source/Python/FMMT/core/GuidTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/FMMT/core/GuidTools.py b/BaseTools/Source/Python/FMMT/core/GuidTools.py index f6bdeffa50..f9cfd4ead0 100644 --- a/BaseTools/Source/Python/FMMT/core/GuidTools.py +++ b/BaseTools/Source/Python/FMMT/core/GuidTools.py @@ -153,7 +153,7 @@ class GUIDTools: config_data = fd.readlines() for line in config_data: try: - if not line.startswith("#"): + if not line.startswith("#") and line.strip(): guid, short_name, command = line.split() new_format_guid = struct2stream(ModifyGuidFormat(guid.strip())) self.tooldef[new_format_guid] = GUIDTool( -- 2.42.0.windows.2 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#116110): https://edk2.groups.io/g/devel/message/116110 Mute This Topic: https://groups.io/mt/104620514/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-