]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: skip TEST-62 if bpf-framework is not supported
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Dec 2021 10:51:23 +0000 (19:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 10 Dec 2021 10:54:33 +0000 (19:54 +0900)
Fixes #21718.

test/units/testsuite-62.sh

index ee67c94ab1bd1ac33f077a17f50d66600130c79c..2569aaac33ea58cd749107f1a78b01cf0e660e4e 100755 (executable)
@@ -47,6 +47,11 @@ if [[ "$KERNEL_MAJOR" -lt $MAJOR_REQUIRED || ("$KERNEL_MAJOR" -eq $MAJOR_REQUIRE
     exit 0
 fi
 
+if systemctl --version | grep -q -F "-BPF_FRAMEWORK"; then
+    echo "bpf-framework is disabled" >>/skipped
+    exit 0
+fi
+
 trap teardown EXIT
 setup