diff options
author | Brian Behlendorf <[email protected]> | 2016-03-25 11:51:01 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-03-25 12:08:24 -0700 |
commit | 647cb8545d92fab4cbbf2ffb94a458c1fced68b3 (patch) | |
tree | 73400ab5328896319347a9cd0589fae3e5e2e302 /tests | |
parent | 541a09016d652d92a9a665a3e62d83907b8b9941 (diff) |
zfs_copies: do_vol_test must wait for device
Occasionally zfs_copies_* tests which rely on do_vol_test() will fail
because udev hasn't yet created the minor device. Wait for it.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib b/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib index 68cfb9220..4957c0f96 100644 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_copies/zfs_copies.kshlib @@ -104,6 +104,8 @@ function do_vol_test log_must $ZFS create -V $VOLSIZE -o copies=$copy $vol log_must $ZFS set refreservation=none $vol + block_device_wait + if [[ $type == "ufs" ]]; then log_must $ECHO y | $NEWFS $vol_r_path >/dev/null 2>&1 log_must $MOUNT -F ufs -o rw $vol_b_path $mntp |