diff options
Diffstat (limited to 'test/shell/lvcreate-operation.sh')
-rw-r--r-- | test/shell/lvcreate-operation.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/shell/lvcreate-operation.sh b/test/shell/lvcreate-operation.sh index c3d8c65a..0ef31384 100644 --- a/test/shell/lvcreate-operation.sh +++ b/test/shell/lvcreate-operation.sh @@ -15,10 +15,8 @@ cleanup_lvs() { lvremove -ff $vg - if dmsetup table|grep $vg; then - echo "ERROR: lvremove did leave some some mappings in DM behind!" - return 1 - fi + (dm_table | not grep $vg) || \ + die "ERROR: lvremove did leave some some mappings in DM behind!" } aux prepare_pvs 2 |