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

edk2_invocable: Bugfix for bad argument handling #746

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

Javagedes
Copy link
Contributor

@Javagedes Javagedes commented Feb 5, 2024

This change fixes a bug in the edk2_invocable.py script where an invalid command line argument would not cause the script to exit with an error.

This occured due to a change that enabled non-valued environment variables to be passed to the script. The result of this change was that any invalid command line argument would be added as a non-valued environment variable rather than triggering the error handling.

This commit makes it such that any non-valued environment variable cannot start with a '-' character, as that is reserved for argparse arguments.

This change fixes a bug in the edk2_invocable.py script where an invalid
command line argument would not cause the script to exit with an error.

This occured due to a change that enabled non-valued environment
variables to be passed to the script. The result of this change was that
any invalid command line argument would be added as a non-valued
environment variable rather than triggering the error handling.

This change is such that any non-valued environment variable can not
start with a '-' character, as that is reserved for argparse arguments.
@Javagedes Javagedes added this to the 0.27.2 milestone Feb 5, 2024
@Javagedes Javagedes added the bug Something isn't working label Feb 5, 2024
@Javagedes Javagedes merged commit a7b9922 into tianocore:master Feb 5, 2024
23 checks passed
@Javagedes Javagedes deleted the bugfix-bad-argument branch February 5, 2024 22:35
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