Skip to content
Open
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
5 changes: 5 additions & 0 deletions tests/kolainst/destructive/soft-reboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in
# Verify that soft-reboot state files are gone
test '!' -f /run/ostree/nextroot-booted

# And verify there were no failures to unmount /etc or /sysroot
journalctl -b -1 -u sysroot.mount -u etc.mount >previous-journal.txt
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

When you do a soft reboot, for the journal it's still the same boot, ie you must use -b0 here

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thinking about it more, the journal is pretty small, we can just remove the -b

assert_not_file_has_content previous-journal.txt Failed
rm -f previous-journal.txt

echo "Soft reboot test completed successfully!"

# Now soft reboot again into the rollback which is not staged,
Expand Down
Loading