From: Thomas Weißschuh Date: Mon, 17 Apr 2023 07:11:49 +0000 (+0200) Subject: fincore: (tests) don't run tests on tmpfs X-Git-Tag: v2.39-rc3~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da2792a291b3f9c22a61856dd5ebbf1788f8619f;p=thirdparty%2Futil-linux.git fincore: (tests) don't run tests on tmpfs Signed-off-by: Thomas Weißschuh --- diff --git a/tests/ts/fincore/count b/tests/ts/fincore/count index bec278ef51..3279c8aea6 100755 --- a/tests/ts/fincore/count +++ b/tests/ts/fincore/count @@ -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"