-
Notifications
You must be signed in to change notification settings - Fork 154
core: Fix usroverlay regression #1784
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
+64
−14
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # A simple nushell "library" for the | ||
|
|
||
| # This is a workaround for what must be a systemd bug | ||
| # that seems to have appeared in C10S | ||
| # TODO diagnose and fill in here | ||
| export def reboot [] { | ||
| # Sometimes systemd daemons are still running old binaries and response "Access denied" when send reboot request | ||
| # Force a full sync before reboot | ||
| sync | ||
| # Allow more delay for bootc to settle | ||
| sleep 30sec | ||
|
|
||
| tmt-reboot | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Verify that bootc usroverlay works | ||
| use std assert | ||
| use tap.nu | ||
| use bootc_testlib.nu | ||
|
|
||
| bootc status | ||
|
|
||
| # We should start out in a non-writable state on each boot | ||
| let is_writable = (do -i { /bin/test -w /usr } | complete | get exit_code) == 0 | ||
| assert (not $is_writable) | ||
|
|
||
| def initial_run [] { | ||
| bootc usroverlay | ||
| let is_writable = (do -i { /bin/test -w /usr } | complete | get exit_code) == 0 | ||
| assert ($is_writable) | ||
|
|
||
| bootc_testlib reboot | ||
| } | ||
|
|
||
| # The second boot; verify we're in the derived image | ||
| def second_boot [] { | ||
| # Nothing, we already verified non-writability above | ||
| } | ||
|
|
||
| def main [] { | ||
| # See https://tmt.readthedocs.io/en/stable/stories/features.html#reboot-during-test | ||
| match $env.TMT_REBOOT_COUNT? { | ||
| null | "0" => initial_run, | ||
| "1" => second_boot, | ||
| $o => { error make { msg: $"Invalid TMT_REBOOT_COUNT ($o)" } }, | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| summary: Execute tests for bootc usrover | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| test: nu booted/test-usroverlay.nu | ||
| duration: 30m | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.