Skip to content

Commit

Permalink
tests/bootupd: check for /boot/bootupd-state.json
Browse files Browse the repository at this point in the history
`bootupctl status` will still be happy even if that file doesn't exist,
so let's check for it explicitly to make sure that
`bootupctl backend install` ran correctly at disk image generation time.
  • Loading branch information
jlebon committed Mar 12, 2024
1 parent 90f984d commit 10d5f64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/kola/boot/bootupd
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ case "$(arch)" in
;;
esac

state_file=/boot/bootupd-state.json
if [ ! -f "${state_file}" ]; then
fatal "${state_file} not present"
fi

bootupctl status
ok bootupctl

0 comments on commit 10d5f64

Please sign in to comment.