Skip to content

Commit

Permalink
Cirrus-CI: Check for final "Uptime" message
Browse files Browse the repository at this point in the history
The last thing printed by the kernel after shutdown is Uptime: <time>.
Check also for this to ensure that shutdown is successful.  A test
branch of mine panicked during shutdown, but still reported success in
Cirrus-CI.

Differential Revision:
  • Loading branch information
emaste committed Feb 3, 2025
1 parent 4a7d666 commit 2768aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/boot/ci-qemu-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ timeout 300 \
-snapshot -hda $hda 2>&1 | tee ${BOOTLOG}

# Check whether we succesfully booted...
if grep -q 'Hello world.' ${BOOTLOG}; then
if grep -q 'Hello world.' ${BOOTLOG} && egrep -q '^Uptime: ' ${BOOTLOG}; then
echo "OK"
else
die "Did not boot successfully, see ${BOOTLOG}"
Expand Down

0 comments on commit 2768aa1

Please sign in to comment.