diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-12-11 10:24:06 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-12-11 23:24:19 +0100 |
commit | b902fd08f688c823937fec612a0ea72848289e56 (patch) | |
tree | 8d0f4a1ddc0471d86ab50f521a802156b52ab130 | |
parent | bcf59a1b185c07a3f7e10f9de13e83501f9a852b (diff) | |
download | lvm2-b902fd08f688c823937fec612a0ea72848289e56.tar.gz |
tests: remove some leaking device
These tests leaks devices (known bugs).
Remove them via dmsetup.
TODO: fix actual commands
-rw-r--r-- | test/shell/lvconvert-repair-cache.sh | 4 | ||||
-rw-r--r-- | test/shell/lvcreate-repair.sh | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/shell/lvconvert-repair-cache.sh b/test/shell/lvconvert-repair-cache.sh index 565ebf48e..f70981372 100644 --- a/test/shell/lvconvert-repair-cache.sh +++ b/test/shell/lvconvert-repair-cache.sh @@ -132,3 +132,7 @@ not "$FSCK" -n "$DM_DEV_DIR/$vg/$lv1" aux enable_dev "$dev1" vgremove -ff $vg + +# FIXME - device should not be here +should not dmsetup remove ${vg}-cpool_cmeta-missing_0_0 +should not dmsetup remove ${vg}-cpool_cdata-missing_0_0 diff --git a/test/shell/lvcreate-repair.sh b/test/shell/lvcreate-repair.sh index 53a6fc1c2..f3be28a22 100644 --- a/test/shell/lvcreate-repair.sh +++ b/test/shell/lvcreate-repair.sh @@ -100,3 +100,6 @@ vgreduce --removemissing --force $vg # Failed to activate new LV. should lvcreate -l1 $vg "$dev1" +should not dmsetup remove ${vg}-lvol0 + +vgremove -ff $vg |