From: Jeff Layton Date: Wed, 3 Dec 2025 15:43:07 +0000 (-0500) Subject: common/rc: clean up after the _require_test_fcntl_setlease() test X-Git-Tag: v2025.12.09~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf6ed3418e0f93259c59fd327b686dee3d45c9fa;p=xfstests-dev.git common/rc: clean up after the _require_test_fcntl_setlease() test Remove setlease_testfile after validating whether a lease can be set. Signed-off-by: Jeff Layton Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/common/rc b/common/rc index cb91c00d..b8c92f1b 100644 --- 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"