tests: do not rely on unportable "grep -q"

* testsuite/inplace-selinux.sh: Avoid unportable "grep -q".
Instead, just redirect to /dev/null.
This commit is contained in:
Jim Meyering committed 2022-11-06 10:57:11 -08:00
1 parent 59c6f17a71
commit 8efd09941e
1 file changed
+2 -2
+2 -2
View File
@@ -18,9 +18,9 @@
print_ver_ sed
require_selinux_
sed --version | grep -q "with SELinux" \
sed --version | grep "with SELinux" > /dev/null \
|| skip_ "sed built without SELinux support"
sed --version | grep -q "^SELinux is enabled" \
sed --version | grep "^SELinux is enabled" > /dev/null \
|| skip_ "sed reports SELinux is disabled on this system"
touch a || framework_failure_