]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
tests: Skip sysfs test on older FUSE versions
authorStéphane Graber <stgraber@ubuntu.com>
Thu, 7 Apr 2022 23:51:23 +0000 (19:51 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 7 Apr 2022 23:58:39 +0000 (19:58 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
tests/test_sysfs.in

index 4ef051da3ce5fc951b652741a4f218f19a9ffba8..936f52029ae63b8ce98c65d42ea4453f1ef4abdb 100755 (executable)
@@ -19,6 +19,12 @@ if ! mountpoint -q ${LXCFSDIR}; then
     exit 1
 fi
 
+if [ "{{ HAVE_FUSE_RETURNS_DT_TYPE }}" != "1" ]; then
+    echo "FUSE3 version doesn't support what's needed for sysfs cpu"
+    PASS=1
+    exit 0
+fi
+
 echo "==> Setting up memory/cpuset cgroup in lxcfs_test_proc"
 [ ! -d /sys/devices/system/cpu ] && exit 0
 mount -o bind "${LXCFSDIR}/sys/devices/system/cpu" "/sys/devices/system/cpu"