]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: fix grepping fixed string starts from hyphen
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Dec 2021 02:54:01 +0000 (11:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 11 Dec 2021 02:54:24 +0000 (11:54 +0900)
Follow-up for 85445fba22b2f81853a3f018ed1f28864cef37fc.

Fixes #21718.

test/units/testsuite-62.sh

index 2f3b18bec3d215fce1439058bf3df9273a88d6b4..da40c2f1e7973c9549574ae88cbf8ebed521f17f 100755 (executable)
@@ -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