1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

test: add regression tests for find_esp() and friend

This commit is contained in:
Yu Watanabe 2023-04-19 04:04:40 +09:00
parent 60e761d8f3
commit c19f1cc9a5

View File

@ -28,6 +28,15 @@ command -v jq >/dev/null || {
"$bootctl" -R || test "$?" -eq 80
"$bootctl" -RR || test "$?" -eq 80
# regression tests for
# https://github.com/systemd/systemd/pull/27199#issuecomment-1511387731
if ret=$("$bootctl" --print-esp-path); then
test "$ret" = "/efi" -o "$ret" = "/boot" -o "$ret" = "/boot/efi"
fi
if ret=$("bootctl" --print-boot-path); then
test "$ret" = "/efi" -o "$ret" = "/boot" -o "$ret" = "/boot/efi"
fi
if "$bootctl" -R > /dev/null ; then
P=$("$bootctl" -R)
PP=$("$bootctl" -RR)