]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Skip inode_cache tests if temporary_dir is on NFS (#648)
authorDeepak Yadav <yadavd@gmail.com>
Mon, 31 Aug 2020 20:04:04 +0000 (01:34 +0530)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 20:04:04 +0000 (22:04 +0200)
test/suites/inode_cache.bash

index 5af20a91f2767d47bf8d5fa26e1f3e30120ea043..2ff0a365560207fc086a4a8f9cc7d78eab13dbf2 100644 (file)
@@ -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