Skip to content

Commit

Permalink
kola/butane/grub-users: Update the test
Browse files Browse the repository at this point in the history
Adapt the test as per the changes from
#2723
Now, we git grep from ostree-x.conf instead of
ostress-x-fedora-coreos.conf
  • Loading branch information
gursewak1997 committed Nov 13, 2023
1 parent 7b38f1c commit 88328ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/kola/butane/grub-users/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,18 @@ rebooted)
fatal "Rebooted into old deployment"
fi
# cross-check karg with BLS configs
if grep -q test-added-karg /boot/loader.0/entries/ostree-1-fedora-coreos.conf; then
if grep -q test-added-karg /boot/loader.0/entries/ostree-1.conf; then
fatal "Old BLS config contains new karg"
fi
if ! grep -q test-added-karg /boot/loader.0/entries/ostree-2-fedora-coreos.conf; then
if ! grep -q test-added-karg /boot/loader.0/entries/ostree-2.conf; then
fatal "New BLS config doesn't contain new karg"
fi
# old deployment should require a password to boot
if ! grep -q '^grub_users ""$' /boot/loader.0/entries/ostree-1-fedora-coreos.conf; then
if ! grep -q '^grub_users ""$' /boot/loader.0/entries/ostree-1.conf; then
fatal "Missing grub_users setting in old BLS config"
fi
# new one should not
if grep -q grub_users /boot/loader.0/entries/ostree-2-fedora-coreos.conf; then
if grep -q grub_users /boot/loader.0/entries/ostree-2.conf; then
fatal "grub_users setting present in new BLS config"
fi
ok "BLS grub_users setting"
Expand Down

0 comments on commit 88328ab

Please sign in to comment.