]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/126: run it inside its own subdirectory
authorJeff Layton <jlayton@kernel.org>
Thu, 20 Feb 2025 11:26:38 +0000 (06:26 -0500)
committerZorro Lang <zlang@kernel.org>
Fri, 21 Feb 2025 15:51:20 +0000 (23:51 +0800)
commitbd6e01c81e2160ce660ad993091f30e6f718079a
tree230b54980183964c12d55564f405b1470f043629
parent535b72a63a2826bd2ee019690df76452b6e1e4ed
generic/126: run it inside its own subdirectory

I had been seeing some failures in generic/126 when running on NFS under
kdevops. The problem turned out to be that kdevops makes the root of the
NFS export mode 01777 by default (i.e. with the sticky bit set). This
causes some of these permission tests to fail because the open() is
called with the O_CREAT bit set.

Make the outcome of this test not depend on the permissions on
$TEST_DIR. Create a new directory to do these tests in, and clean it up
when done.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/126