Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_locate_tools: Make test_FindInf2CatToolInWinSdk() results consistent #647

Conversation

makubacki
Copy link
Member

Currently, this function depends on finding the actual inf2cat.exe tool which is dependent on the user's system. Instead mock the dependencies so the function logic is excercised but with consistent dependency values.

@makubacki makubacki self-assigned this Sep 30, 2024
@makubacki makubacki force-pushed the mock_localtoolstest_func_for_consistent_results branch from 54ec092 to 751cab9 Compare September 30, 2024 23:27
Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.31%. Comparing base (ce85203) to head (e44f743).
Report is 110 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #647      +/-   ##
==========================================
- Coverage   81.43%   81.31%   -0.13%     
==========================================
  Files          56       45      -11     
  Lines        7514     7486      -28     
==========================================
- Hits         6119     6087      -32     
- Misses       1395     1399       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Javagedes Javagedes added the bug Something isn't working label Oct 1, 2024
@Javagedes Javagedes added this to the v0.21.11 milestone Oct 1, 2024
…tent

Currently, this function depends on finding the actual inf2cat.exe
tool which is dependent on the user's system. Instead mock the
dependencies so the function logic is excercised but with consistent
dependency values.

Signed-off-by: Michael Kubacki <[email protected]>
@Javagedes Javagedes force-pushed the mock_localtoolstest_func_for_consistent_results branch from 751cab9 to e44f743 Compare October 1, 2024 15:45
@Javagedes Javagedes merged commit 2b0527b into tianocore:master Oct 1, 2024
12 checks passed
@Javagedes Javagedes modified the milestones: v0.21.11, v0.21.12 Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants