1717from edk2toollib .uefi .edk2 .parsers .fdf_parser import FdfParser
1818from edk2toollib .uefi .edk2 .parsers .dsc_parser import DscParser
1919from edk2toollib .uefi .edk2 .parsers .inf_parser import InfParser
20+ from edk2toollib .gitignore_parser import parse_gitignore_lines
2021import yaml
2122from typing import List
2223import logging
@@ -124,7 +125,9 @@ def do_post_build(self, thebuilder):
124125
125126 self .test_manager .config_data = config_data
126127 self .config_data = config_data
127- self .ignore_list = config_data ["IGNORE_LIST" ]
128+ self .ignore = parse_gitignore_lines (config_data .get ("IGNORE_LIST" , []), os .path .join (
129+ thebuilder .ws , "nofile.txt" ), thebuilder .ws )
130+
128131 self .arch_dict = config_data ["TARGET_ARCH" ]
129132
130133 count = 0
@@ -169,7 +172,7 @@ def do_post_build(self, thebuilder):
169172 logging .warning (
170173 "Unable to parse the path to the pre-compiled efi" )
171174 continue
172- if os . path . basename (efi_path ) in self . ignore_list :
175+ if self . ignore (efi_path ):
173176 continue
174177 logging .debug (
175178 f'Performing Image Verification ... { os .path .basename (efi_path )} ' )
@@ -186,7 +189,7 @@ def do_post_build(self, thebuilder):
186189 ['.efi' ], f'{ os .path .join (thebuilder .env .GetValue ("BUILD_OUTPUT_BASE" ), arch )} ' )
187190
188191 for efi_path in efi_path_list :
189- if os . path . basename (efi_path ) in self . ignore_list :
192+ if self . ignore (efi_path ):
190193 continue
191194
192195 # Perform Image Verification on any output efi's
0 commit comments