1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

tests: fix pvcreate-operation-md test to properly clean up devs before their reuse

pvcreate filters out devices with existing partitions defined on them,
we need to properly clean up the devs before we reuse them.
This commit is contained in:
Peter Rajnoha 2015-02-13 14:53:26 +01:00
parent 993c988895
commit 1ced5562cd

View File

@ -132,9 +132,13 @@ EOF
fi fi
fi fi
# make sure we're clean for another test
test -b "$mddev" && cleanup_md
dd if=/dev/zero of="$dev1" bs=512 count=1
dd if=/dev/zero of="$dev2" bs=512 count=1
# Test newer topology-aware alignment detection w/ --dataalignment override # Test newer topology-aware alignment detection w/ --dataalignment override
if kernel_at_least 2 6 33 ; then if kernel_at_least 2 6 33 ; then
cleanup_md
pvcreate -f "$dev1" pvcreate -f "$dev1"
pvcreate -f "$dev2" pvcreate -f "$dev2"