From 10d5f64d6a953abc37ed2341f91e1d468dcf1964 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 12 Mar 2024 14:55:29 -0400 Subject: [PATCH] tests/bootupd: check for `/boot/bootupd-state.json` `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. --- tests/kola/boot/bootupd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/kola/boot/bootupd b/tests/kola/boot/bootupd index 34634be594..6e29500d7e 100755 --- a/tests/kola/boot/bootupd +++ b/tests/kola/boot/bootupd @@ -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