diff options
-rwxr-xr-x | tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh index 747f6d2f0..c49c77703 100755 --- a/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh +++ b/tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh @@ -49,10 +49,8 @@ verify_runnable "global" function cleanup { - datasetexists $TESTPOOL/$TESTVOL && \ - log_must zfs destroy -f $TESTPOOL/$TESTVOL - datasetexists $TESTPOOL/$TESTVOL1 && \ - log_must zfs destroy -f $TESTPOOL/$TESTVOL1 + destroy_dataset $TESTPOOL/$TESTVOL + destroy_dataset $TESTPOOL/$TESTVOL1 } log_onexit cleanup |