Skip to content

SetupDataPkg: Conf app support multiple input keys#588

Merged
apop5 merged 1 commit intomicrosoft:mainfrom
apop5:personal/apop5/bootoption10support
Apr 3, 2026
Merged

SetupDataPkg: Conf app support multiple input keys#588
apop5 merged 1 commit intomicrosoft:mainfrom
apop5:personal/apop5/bootoption10support

Conversation

@apop5
Copy link
Copy Markdown
Contributor

@apop5 apop5 commented Apr 2, 2026

Description

The boot option menu supports up to 10 boot options, but the key input only support reading a single key press. This resulted in only a single keypress of 0-9 resulting in booting. attempting to press 1 + 0 would result in booting option 1.

Modify the keypress code to read until an enter key is pressed. i.e. 1 + will boot option 1, 1 + 0 + will result in boot option 10 booting.

Updated unit test to test multi key press.

This is a change in functionality in that now an is required to get boot to select an option.
While this is not a breaking change, it will be a change in behavior for the user.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

Boot Q35, with modified code which printed keypresed.

pressing 1 + 0 + resulted in reading 10.

Integration Instructions

No integration necessary.

The boot option menu supports up to 10 boot options,
but the key input only support reading a single key press.
This resulted in only a single keypress of 0-9 resulting
in booting. attempting to press 1 + 0 would result in booting
option 1.

Modify the keypress code to read until an enter key is pressed.
i.e. 1 + <enter> will boot option 1, 1 + 0 + <enter> will result
in boot option 10 booting.

Updated unit test to test multi key press.
@apop5 apop5 linked an issue Apr 2, 2026 that may be closed by this pull request
1 task
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 2, 2026

Codecov Report

❌ Patch coverage is 78.12500% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 28.99%. Comparing base (44e0a41) to head (082c4fe).

Files with missing lines Patch % Lines
SetupDataPkg/ConfApp/BootOptions.c 78.12% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #588      +/-   ##
==========================================
+ Coverage   28.83%   28.99%   +0.15%     
==========================================
  Files          23       23              
  Lines        7269     7291      +22     
  Branches      624      631       +7     
==========================================
+ Hits         2096     2114      +18     
- Misses       5167     5171       +4     
  Partials        6        6              
Flag Coverage Δ
Linux 20.07% <ø> (ø)
SetupDataPkg 61.81% <78.12%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@apop5 apop5 merged commit 5f77d60 into microsoft:main Apr 3, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot support more than 10 boot option selection in "Boot options"

4 participants