Skip to contentSkip to conversation

master - tests: simplify

PATCH Zdenek Kabelac 1 participant 1 message Mar 21, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8b1916fd5a5640f357ea50b806840d3981661de6
Commit:        8b1916fd5a5640f357ea50b806840d3981661de6
Parent:        de5683d8d96613f37a21ed37695a5399c03a9257
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Mar 19 23:33:01 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Mar 21 22:29:28 2014 +0100

tests: simplify

---
 test/shell/lvcreate-signature-wiping.sh |    8 ++------
 test/shell/thin-merge.sh                |    1 -
 2 files changed, 2 insertions(+), 7 deletions(-)
test/shell/lvcreate-signature-wiping.sh +2 -6
index 5618780..be06bce 100644
@@ -13,9 +13,7 @@
 
 . lib/test
 
-aux prepare_devs 1
-aux pvcreate -f $dev1
-aux vgcreate $vg $dev1
+aux prepare_vg
 
 # lvcreate wipes signatures when found on newly created LV - test this on "swap".
 # Test all combinatios with -Z{y|n} and -W{y|n} and related lvm.conf settings.
@@ -92,6 +90,4 @@ mkswap "$DM_DEV_DIR/$vg/$lv1"
 blkid -c /dev/null "$DM_DEV_DIR/$vg/$lv1" | grep "swap"
 lvremove -f $vg/$lv1
 
-
-vgremove $vg
-pvremove $dev1
+vgremove -f $vg
test/shell/thin-merge.sh +0 -1
index 7eb137e..60234a6 100644
@@ -76,7 +76,6 @@ lvchange -an $vg/$lv1
 not lvchange -K -ay $vg/snap
 
 lvs -a -o +tags,thin_id $vg
-dmsetup table
 
 # Test if merge happens
 lvchange -ay $vg/$lv1