From c19f1cc9a5ef20f37e890df65fb9b8b95a0b18fa Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 19 Apr 2023 04:04:40 +0900 Subject: [PATCH] test: add regression tests for find_esp() and friend --- test/test-bootctl-json.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test-bootctl-json.sh b/test/test-bootctl-json.sh index fde5fbd1de1..4d7c468241b 100755 --- a/test/test-bootctl-json.sh +++ b/test/test-bootctl-json.sh @@ -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) -- 2.47.3