Skip to content

test: Add tests for missing /boot and --bootloader=none#2029

Merged
cgwalters merged 2 commits intobootc-dev:mainfrom
henrywang:new-test
Mar 3, 2026
Merged

test: Add tests for missing /boot and --bootloader=none#2029
cgwalters merged 2 commits intobootc-dev:mainfrom
henrywang:new-test

Conversation

@henrywang
Copy link
Collaborator

Add two new integration tests:

  • test-35-install-no-boot-dir: Tests install to-filesystem when /boot directory is absent
  • test-36-install-bootloader-none: Tests install with --bootloader=none option to skip bootloader management

@bootc-bot bootc-bot bot requested a review from gursewak1997 February 27, 2026 16:13
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds two new integration tests for bootc. The first test verifies that bootc install to-filesystem works correctly when the target filesystem does not have a /boot directory. The second test checks that bootc install with the --bootloader=none option completes successfully. The changes are well-structured and follow the existing patterns for tests in this repository. I've found a minor issue in one of the new test scripts where an unused directory is created, and I've suggested its removal.

@henrywang henrywang force-pushed the new-test branch 6 times, most recently from b3ebfe8 to 72f72b1 Compare March 1, 2026 07:20
@henrywang henrywang requested a review from cgwalters March 2, 2026 14:01
Add two new integration tests:
- test-35-install-no-boot-dir: Tests install to-filesystem when /boot
  directory is absent
- test-36-install-bootloader-none: Tests install with --bootloader=none
  option to skip bootloader management

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Replace the complex get_target_image function with a simpler approach:
use `bootc image copy-to-storage` to copy the booted image to local
container storage, then reference it as containers-storage:localhost/bootc.

Also add a run_install helper in tap.nu to eliminate copy-pasted
systemd-run boilerplate across install tests.

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
@cgwalters cgwalters merged commit 864b7f0 into bootc-dev:main Mar 3, 2026
46 checks passed
@henrywang henrywang deleted the new-test branch March 3, 2026 13:01
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.

2 participants