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:
parent
066d0a4e19
commit
d7888e8316
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user