tests: Test guestfish --key all:... selector

This commit is contained in:
Richard W.M. Jones
2023-12-14 09:15:08 +00:00
parent 7fd41b5a02
commit 40f43cc8ea

View File

@@ -119,3 +119,20 @@ eval "$fish_ref"
# Repeat the test.
check_filesystems
# Exit the current guestfish background process.
guestfish --remote -- exit
GUESTFISH_PID=
# Test the --key all:... selector.
keys_by_mapper_lvname=(
--key all:key:FEDORA-Root
--key all:key:FEDORA-LV1
--key all:key:FEDORA-LV2
--key all:key:FEDORA-LV3
)
fish_ref=$("${guestfish[@]}" "${keys_by_mapper_lvname[@]}")
eval "$fish_ref"
# Repeat the test.
check_filesystems