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

tests: try more advanced clean

When test is executed on real device - lets try a more complete
cleanup - discard whole device first and try to wipe any
headers it might be left from previous test.
This commit is contained in:
Zdenek Kabelac 2015-04-24 11:12:55 +02:00
parent 066d0a4e19
commit d7888e8316

View File

@ -431,7 +431,8 @@ prepare_devs() {
# non-ephemeral devices need to be cleared between tests
test -f LOOP || for d in ${DEVICES[@]}; do
dd if=/dev/zero of=$d bs=64K count=1
blkdiscard "$d" 2>/dev/null || true
wipefs -a "$d" 2>/dev/null || dd if=/dev/zero of="$d" bs=64K count=1
done
#for i in `seq 1 $n`; do