]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: clean up after the _require_test_fcntl_setlease() test
authorJeff Layton <jlayton@kernel.org>
Wed, 3 Dec 2025 15:43:07 +0000 (10:43 -0500)
committerZorro Lang <zlang@kernel.org>
Fri, 5 Dec 2025 17:41:49 +0000 (01:41 +0800)
Remove setlease_testfile after validating whether a lease can be set.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index cb91c00d24fb19d416001f8ae966de5f0c7dd2c8..b8c92f1bd649bfb97005e57d60d016190ff6fd3a 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -4657,6 +4657,7 @@ _require_test_fcntl_setlease()
        touch $TEST_DIR/setlease_testfile
        $here/src/locktest -t $TEST_DIR/setlease_testfile >/dev/null 2>&1
        local ret=$?
+       rm -f $TEST_DIR/setlease_testfile
        [ $ret -eq 22 ] && _notrun "Require fcntl setlease support"
        [ "$FSTYP" == "nfs" -a $ret -eq 11 ] && \
                _notrun "NFS requires delegation before setlease"