Skip to content

Commit

Permalink
Update function name from dependency in edk2-pytool-library (#270)
Browse files Browse the repository at this point in the history
Spelling was corrected on GetAbsolutePathOnThisSystemFromEdk2RelativePath()
  • Loading branch information
spbrogan authored Aug 25, 2021
1 parent 6585bba commit 10f4326
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion edk2toolext/invocables/edk2_ci_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def Go(self):
env = shell_environment.GetBuildVars()

# load the package level .ci.yaml
pkg_config_file = edk2path.GetAbsolutePathOnThisSytemFromEdk2RelativePath(
pkg_config_file = edk2path.GetAbsolutePathOnThisSystemFromEdk2RelativePath(
os.path.join(pkgToRunOn, pkgToRunOn + ".ci.yaml"))
if(pkg_config_file):
with open(pkg_config_file, 'r') as f:
Expand Down
4 changes: 2 additions & 2 deletions edk2toolext/invocables/edk2_pr_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def _get_unique_module_infs_changed(self, files: list):
def _does_pkg_depend_on_package(self, package_to_eval: str, support_package: str) -> bool:
''' return if any module in package_to_eval depends on public files defined in support_package'''
# get filesystem path of package_to_eval
abs_pkg_path = self.edk2_path_obj.GetAbsolutePathOnThisSytemFromEdk2RelativePath(package_to_eval)
abs_pkg_path = self.edk2_path_obj.GetAbsolutePathOnThisSystemFromEdk2RelativePath(package_to_eval)

# loop thru all inf files in the package
inf_files = self._walk_dir_for_filetypes([".inf"], abs_pkg_path)
Expand Down Expand Up @@ -349,7 +349,7 @@ def _is_public_file(self, filepath):
if (pkg in self.parsed_dec_cache):
dec = self.parsed_dec_cache[pkg]
else:
abs_pkg_path = self.edk2_path_obj.GetAbsolutePathOnThisSytemFromEdk2RelativePath(pkg)
abs_pkg_path = self.edk2_path_obj.GetAbsolutePathOnThisSystemFromEdk2RelativePath(pkg)
dec = self._parse_dec_for_package(abs_pkg_path)
self.parsed_dec_cache[pkg] = dec

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pytest
pytest-html
pytest-cov
flake8==3.8.*
flake8
pyopenssl
pefile

0 comments on commit 10f4326

Please sign in to comment.