test: skip TEST-62 if bpf-framework is not supported

Fixes #21718.
This commit is contained in:
Yu Watanabe
2021-12-10 19:54:33 +09:00
parent 6b35ed80ed
commit 85445fba22
+5
View File
@@ -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