diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-19 04:04:40 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-19 04:04:57 +0900 |
commit | c19f1cc9a5ef20f37e890df65fb9b8b95a0b18fa (patch) | |
tree | 32f6d9ee7eddbb445bb0ad95103ad211a7bbbcf4 /test | |
parent | 60e761d8f3e14ebbadb26f2e2ca2c225f97660ef (diff) | |
download | systemd-c19f1cc9a5ef20f37e890df65fb9b8b95a0b18fa.tar.gz |
test: add regression tests for find_esp() and friend
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-bootctl-json.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-bootctl-json.sh b/test/test-bootctl-json.sh index fde5fbd1de..4d7c468241 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) |