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:
parent
993c988895
commit
1ced5562cd
@ -132,9 +132,13 @@ EOF
|
||||
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
|
||||
if kernel_at_least 2 6 33 ; then
|
||||
cleanup_md
|
||||
pvcreate -f "$dev1"
|
||||
pvcreate -f "$dev2"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user