1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: quoted DM_DEV_DIR

This commit is contained in:
Zdenek Kabelac 2024-05-27 21:29:58 +02:00
parent 7e59c3aa58
commit f10de12ade

View File

@ -33,26 +33,26 @@ touch "$DF"
vgcreate $vg1 "$dev1"
lvcreate -n $lv1 -L 8M $vg1
lvcreate -n $lv2 -L 8M $vg1
pvcreate $DM_DEV_DIR/$vg1/$lv1
pvcreate $DM_DEV_DIR/$vg1/$lv2
vgcreate $vg2 $DM_DEV_DIR/$vg1/$lv1 $DM_DEV_DIR/$vg1/$lv2
pvcreate "$DM_DEV_DIR/$vg1/$lv1"
pvcreate "$DM_DEV_DIR/$vg1/$lv2"
vgcreate $vg2 "$DM_DEV_DIR/$vg1/$lv1" "$DM_DEV_DIR/$vg1/$lv2"
pvs $DM_DEV_DIR/$vg1/$lv1
pvs $DM_DEV_DIR/$vg1/$lv2
pvs "$DM_DEV_DIR/$vg1/$lv1"
pvs "$DM_DEV_DIR/$vg1/$lv2"
grep "$dev1" "$DF"
grep $DM_DEV_DIR/$vg1/$lv1 "$DF" | tee out1
grep "$DM_DEV_DIR/$vg1/$lv1" "$DF" | tee out1
grep "IDTYPE=lvmlv_uuid" out1
grep "IDNAME=LVM-" out1
grep $DM_DEV_DIR/$vg1/$lv2 "$DF" | tee out2
grep "$DM_DEV_DIR/$vg1/$lv2" "$DF" | tee out2
grep "IDTYPE=lvmlv_uuid" out2
grep "IDNAME=LVM-" out2
lvremove -y $vg1/$lv1
not grep $DM_DEV_DIR/$vg1/$lv1 "$DF"
not grep "$DM_DEV_DIR/$vg1/$lv1" "$DF"
lvremove -y $vg1/$lv2
not grep $DM_DEV_DIR/$vg1/$lv2 "$DF"
not grep "$DM_DEV_DIR/$vg1/$lv2" "$DF"
grep "$dev1" "$DF"
not grep "IDTYPE=lvmlv_uuid" "$DF"