]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fincore: (tests) don't run tests on tmpfs
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 17 Apr 2023 07:11:49 +0000 (09:11 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 17 Apr 2023 09:30:19 +0000 (11:30 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/ts/fincore/count

index bec278ef51aa2a6b82e6229734fab331a5293076..3279c8aea6d52e81f6e9f11671a450ca9e8e1282 100755 (executable)
@@ -6,8 +6,14 @@ TS_DESC="count file contents in core"
 . "$TS_TOPDIR"/functions.sh
 ts_init "$*"
 
+ts_check_test_command "$TS_HELPER_FINDMNT"
 ts_check_test_command "$TS_HELPER_SYSINFO"
 
+FS="$("$TS_CMD_FINDMNT" -nr -o FSTYPE -T "$PWD")"
+if [[ "$FS" = "tmpfs" ]]; then
+       ts_skip "fincore does not work on tmpfs"
+fi
+
 # Send patch if you know how to keep it portable and robust. Thanks.
 TS_KNOWN_FAIL="yes"