]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Clean up inode_cache suite probe code
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 31 Aug 2020 20:06:19 +0000 (22:06 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 31 Aug 2020 20:06:19 +0000 (22:06 +0200)
test/suites/inode_cache.bash

index 2ff0a365560207fc086a4a8f9cc7d78eab13dbf2..dc8d5f0efb71148eee85e74d18379394be895ff6 100644 (file)
@@ -1,9 +1,8 @@
 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"
+    temp_dir=$(dirname $($CCACHE -k temporary_dir))
+    fs=$(stat -fLc %T $temp_dir)
+    if [ "$fs" = "nfs" ]; then
+        echo "ccache temporary directory is on NFS"
     fi
 }