diff --git a/tests/zfs-tests/tests/functional/mount/cleanup.ksh b/tests/zfs-tests/tests/functional/mount/cleanup.ksh index bd6b0e435ed1..0e88e2a1fc79 100755 --- a/tests/zfs-tests/tests/functional/mount/cleanup.ksh +++ b/tests/zfs-tests/tests/functional/mount/cleanup.ksh @@ -27,12 +27,14 @@ # # Copyright (c) 2013, 2016 by Delphix. All rights reserved. +# Copyright 2025 MNX Cloud, Inc. # . $STF_SUITE/include/libtest.shlib log_must destroy_pool $TESTPOOL -for dir in $TESTDIRS; do +for i in 1 2 3; do + dir=$TESTDIR.$i rm -rf $dir done