diff options
author | Giuseppe Di Natale <[email protected]> | 2017-07-24 11:10:25 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-07-24 11:10:25 -0700 |
commit | 39554216dff2c8bd4a2fa296644b5e3723ce8ed3 (patch) | |
tree | 22e29c73623a1a637bfa6be82751c12e76867f3f /tests | |
parent | 0c656a964da7993847943c438c5abee7f46aa06d (diff) |
zfs_mount_001_neg: use log_must_busy in cleanup
Use log_must_busy when destroying the snapshot
and dataset during cleanup in zfs_mount_001_neg.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Giuseppe Di Natale <[email protected]>
Closes #6382
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh index 795fc3114..a116b4647 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_mount/zfs_mount_011_neg.ksh @@ -46,11 +46,11 @@ verify_runnable "both" function cleanup { if snapexists $TESTPOOL/$TESTFS@$TESTSNAP; then - log_must zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP + log_must_busy zfs destroy $TESTPOOL/$TESTFS@$TESTSNAP fi if is_global_zone && datasetexists $TESTPOOL/$TESTVOL; then - log_must zfs destroy $TESTPOOL/$TESTVOL + log_must_busy zfs destroy $TESTPOOL/$TESTVOL fi } |