Skip to content

Commit ab47571

Browse files
author
Paul Dagnelie
committed
Make test more resilient
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent d88f6f1 commit ab47571

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/zfs-tests/tests/functional/cli_root/zpool_initialize/zpool_initialize_online_offline.ksh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ for type in "mirror" "anyraid1"; do
5252
log_must zpool create -f $TESTPOOL $type $DISK1 $DISK2
5353
else
5454
log_must zpool create -f $TESTPOOL $type $DISK1 $DISK2 $DISK3
55+
log_must dd if=/dev/urandom of=/$TESTPOOL/f1 bs=1M count=100
56+
log_must zpool sync
57+
log_must rm /$TESTPOOL/f1
58+
log_must zpool sync
5559
fi
5660
log_must zpool initialize $TESTPOOL $DISK1
5761

0 commit comments

Comments
 (0)