diff --git a/tests/zfs-tests/tests/functional/reservation/reservation_017_pos.sh b/tests/zfs-tests/tests/functional/reservation/reservation_017_pos.sh index dc31c5a8f..bb3af67d2 100755 --- a/tests/zfs-tests/tests/functional/reservation/reservation_017_pos.sh +++ b/tests/zfs-tests/tests/functional/reservation/reservation_017_pos.sh @@ -55,7 +55,7 @@ function cleanup typeset vol for vol in $regvol $sparsevol; do - datasetexists $vol && log_must zfs destroy $vol + destroy_dataset $vol done } log_onexit cleanup