]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Skip tmpfs-sensitive tests if fstype cannot be determined
authorChris Hofstaedtler <zeha@debian.org>
Wed, 13 Nov 2024 13:51:37 +0000 (14:51 +0100)
committerChris Hofstaedtler <chris@hofstaedtler.name>
Fri, 15 Nov 2024 11:22:38 +0000 (12:22 +0100)
commit83359a297911f39245343e270f8b9ea587df23f2
tree7ae1be4bd227880acc8df5a9b763132274374250
parent2bf297b55f78b77b0e585502546afa79264e693d
Skip tmpfs-sensitive tests if fstype cannot be determined

In certain isolation environments (f.e. Debian's sbuild+unshare),
`/proc/mounts` does not have an entry for the directory we're building in.

Then, findmnt as used in the tests returns nothing. As the build directory
might very well be on tmpfs (and often is, in Debian), disable the two tests
known to fail on tmpfs.

In yet another scenario, if ran in a Docker/podman container, the fstype
will read "overlay", which in the end can also be tmpfs, and we see problems
there, too.

This was noticed because torvalds/linux@e88e0d366f9cfbb810b0c8509dc5d130d5a53e02
changed the behaviour of the underlying syscalls on tmpfs in Linux 6.6.

Closes: #3266
Debian bug #1086706

Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
tests/ts/fadvise/drop
tests/ts/fincore/count