From: Deepak Yadav Date: Mon, 31 Aug 2020 20:04:04 +0000 (+0530) Subject: Skip inode_cache tests if temporary_dir is on NFS (#648) X-Git-Tag: v4.0~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9336eb6ded19bcfd01a6da7ca2156311b92534c1;p=thirdparty%2Fccache.git Skip inode_cache tests if temporary_dir is on NFS (#648) --- diff --git a/test/suites/inode_cache.bash b/test/suites/inode_cache.bash index 5af20a91f..2ff0a3655 100644 --- a/test/suites/inode_cache.bash +++ b/test/suites/inode_cache.bash @@ -1,3 +1,12 @@ +SUITE_inode_cache_PROBE() { + temp_dir=`$CCACHE -k temporary_dir` + temp_dir=`dirname $temp_dir` + disk=`stat -f -L -c %T $temp_dir` + if [ "$disk" == "nfs" ]; then + echo "test does not support NFS disk" + fi +} + SUITE_inode_cache_SETUP() { export CCACHE_INODECACHE=1 export CCACHE_DEBUG=1