diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-17 00:06:56 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2023-02-17 00:08:50 +0100 |
commit | 06c5c29443fdd48730a282a5db16e46c793db27b (patch) | |
tree | 80ac778d69867964ece79f2db09918be33e0a333 /test/shell | |
parent | d58b475f6320257e72f01be3c57badd65af28d56 (diff) | |
download | lvm2-06c5c29443fdd48730a282a5db16e46c793db27b.tar.gz |
tests: check failing vdo conversion
When we detect not usable vdo on a machine, check lvconvert fails.
Diffstat (limited to 'test/shell')
-rw-r--r-- | test/shell/lvconvert-vdo.sh | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/shell/lvconvert-vdo.sh b/test/shell/lvconvert-vdo.sh index c42d8f25a..7c0bce56b 100644 --- a/test/shell/lvconvert-vdo.sh +++ b/test/shell/lvconvert-vdo.sh @@ -18,12 +18,18 @@ SKIP_WITH_LVMPOLLD=1 # # Main # -aux have_vdo 6 2 0 || skip - aux prepare_vg 2 6400 # Conversion to vdo-pool lvcreate -L5G -n $lv1 $vg + +if not aux have_vdo 6 2 0 ; then +# For unsupported VDO let's check lvconvert fails + not lvconvert --yes --type vdo-pool $vg/$lv1 |& tee out + vgremove -ff $vg + exit +fi + # Check there is big prompting warning not lvconvert --type vdo-pool $vg/$lv1 |& tee out grep "WARNING" out |