Skip to content

Commit

Permalink
edk2_pr_eval: Policy 5: allow dsc parse failures (#617)
Browse files Browse the repository at this point in the history
Given that PR eval runs before dependencies are downloaded, there will
be cirumstances where files used in the dsc are not present. This can
be tollerated by setting NoFailMode, which just results in the parser
moving onto the next line when the parsing fails.
  • Loading branch information
Javagedes authored Jul 28, 2023
1 parent ebcfcd2 commit c77dddf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edk2toolext/invocables/edk2_pr_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def get_packages_to_build(self, possible_packages: list) -> dict:
continue

dsc_parser = DscParser()
dsc_parser.SetNoFailMode()
dsc_parser.SetEdk2Path(self.edk2_path_obj).SetInputVars(defines)
dsc_parser.ParseFile(dsc)

Expand Down

0 comments on commit c77dddf

Please sign in to comment.