Skip to content

setup-and-boot-menus: Mount a bootable drive instead of UEFI shell #859

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

Merged
merged 3 commits into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/qemu-self-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository and submodules
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: Chceckout submodules
run: |
git submodule update --init --checkout --recursive

- name: Set up QEMU
run: |
Expand Down Expand Up @@ -44,6 +46,18 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Set up git-annex
uses: jstritch/setup-git-annex@v1

- name: Set up osfv-test-data
working-directory: osfv-test-data
run: |
set +e
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git annex pull
./setup.sh

- name: Start keywords self-tests with QEMU
run: |
./scripts/ci/qemu-self-test.sh
Expand Down
8 changes: 5 additions & 3 deletions self-tests/dasharo-system-features-menus.robot
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Parse Power Management Options
Skip If not ${DASHARO_POWER_MGMT_MENU_SUPPORT}
${power_menu}= Parsing Dasharo Submenu Verification Power Management Options
${power_entries}= Get Length ${power_menu}
Should Be Equal As Integers ${power_entries} 6
Should Be Equal As Integers ${power_entries} 5
Should Match Regexp ${power_menu}[0] ^Fan profile <.*>.*$
Menu Construction Should Not Contain Control Text ${power_menu}

Expand Down Expand Up @@ -181,14 +181,16 @@ Parse Serial Port Configuration
Enter Dasharo Submenu Verification
[Documentation] Enters Dasharo System Features submenu as in the given
... ${submenu_name}. Checks whether the menu can be entered properly.
[Arguments] ${submenu_name}
[Arguments] ${submenu_name} ${skip_last_line_check}=${FALSE}
Power On
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
${dasharo_menu}= Enter Dasharo System Features ${setup_menu}
Enter Submenu From Snapshot ${dasharo_menu} ${submenu_name}
${out}= Read From Terminal Until Esc=Exit
Should Contain ${out} ${submenu_name}
Should Contain ${out} Press ESC to exit.
IF not ${skip_last_line_check}
Should Contain ${out} Press ESC to exit.
END
RETURN ${out}

Parsing Dasharo Submenu Verification
Expand Down
4 changes: 3 additions & 1 deletion self-tests/setup-and-boot-menus.robot
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@ Enter One Time Boot Menu

Parse One Time Boot Menu
[Documentation] Test entering into User Password Management menu
Add USB To Qemu ${TEST_DATA_DIR}/dts/dts-base-image-v2.1.3.wic
Power On
${setup_menu}= Enter Setup Menu Tianocore And Return Construction
${otb_menu}= Enter Submenu From Snapshot And Return Construction
... ${setup_menu}
... One Time Boot
List Should Contain Value ${otb_menu} UEFI Shell
List Should Contain Value ${otb_menu} QEMU QEMU USB HARDDRIVE
Menu Construction Should Not Contain Control Text ${otb_menu}
Remove Drive From Qemu

Enter Boot Maintenance Manager Menu
[Documentation] Test entering into User Password Management menu
Expand Down
Loading