From: Yu Watanabe Date: Fri, 10 Dec 2021 10:51:23 +0000 (+0900) Subject: test: skip TEST-62 if bpf-framework is not supported X-Git-Tag: v250-rc3~73^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85445fba22b2f81853a3f018ed1f28864cef37fc;p=thirdparty%2Fsystemd.git test: skip TEST-62 if bpf-framework is not supported Fixes #21718. --- diff --git a/test/units/testsuite-62.sh b/test/units/testsuite-62.sh index ee67c94ab1b..2569aaac33e 100755 --- a/test/units/testsuite-62.sh +++ b/test/units/testsuite-62.sh @@ -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