From 9336eb6ded19bcfd01a6da7ca2156311b92534c1 Mon Sep 17 00:00:00 2001 From: Deepak Yadav Date: Tue, 1 Sep 2020 01:34:04 +0530 Subject: [PATCH] Skip inode_cache tests if temporary_dir is on NFS (#648) --- test/suites/inode_cache.bash | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.47.3