-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Makes several fixes and improvements to GetContainingModules(). Fixes #188 These changes preserve the main behavior of the function while more deterministically enforcing requirements and handling additional scenarios. 1. Fixes an issue where the function would look for .inf files in directories beyond the maximum allowed directory for the Edk2Path object instance. `test_get_containing_module_with_infs_in_other_temp_dirs()` now passes. 2. Explicitly and consistently enforces that absolute paths are passed to the function. An exception is raised if a path is not absolute. In the past behavior was undefined and not considered in the function implementation. A test case is added to confirm this behavior. 3. Handles n-levels of nested directories in a module directory as opposed to a hardcoded number of 2 (file parent and that parent) previously. 4. Verifies the path is within an allowed path for the Edk2Path object (the workspace or a valid package path). 5. Returns paths in a consistent and fully resolved format. 6. Improves function documentation. Signed-off-by: Michael Kubacki <[email protected]>
- Loading branch information
Showing
2 changed files
with
150 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters