From: Yu Watanabe Date: Tue, 18 Apr 2023 19:04:40 +0000 (+0900) Subject: test: add regression tests for find_esp() and friend X-Git-Tag: v254-rc1~681^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c19f1cc9a5ef20f37e890df65fb9b8b95a0b18fa;p=thirdparty%2Fsystemd.git test: add regression tests for find_esp() and friend --- 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)