test: fix grepping fixed string starts from hyphen

Follow-up for 85445fba22.

Fixes #21718.
This commit is contained in:
Yu Watanabe
2021-12-11 11:54:24 +09:00
parent 3abdd4bf2e
commit c18f18745b
+1 -1
View File
@@ -47,7 +47,7 @@ if [[ "$KERNEL_MAJOR" -lt $MAJOR_REQUIRED || ("$KERNEL_MAJOR" -eq $MAJOR_REQUIRE
exit 0
fi
if systemctl --version | grep -q -F "-BPF_FRAMEWORK"; then
if systemctl --version | grep -q -F -- "-BPF_FRAMEWORK"; then
echo "bpf-framework is disabled" >>/skipped
exit 0
fi