diff options
author | Jim Meyering <meyering@fb.com> | 2022-11-06 10:57:11 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2022-11-06 10:57:11 -0800 |
commit | 8efd09941eb95947f10773094764dbfd2136feda (patch) | |
tree | 285d17f6e911f8077b613bbe51f18db105680f21 | |
parent | 59c6f17a719b5425f4defb3d9219210cfc676709 (diff) | |
download | sed-8efd09941eb95947f10773094764dbfd2136feda.tar.gz |
tests: do not rely on unportable "grep -q"
* testsuite/inplace-selinux.sh: Avoid unportable "grep -q".
Instead, just redirect to /dev/null.
-rwxr-xr-x | testsuite/inplace-selinux.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/inplace-selinux.sh b/testsuite/inplace-selinux.sh index bfcf486..cfad4a8 100755 --- a/testsuite/inplace-selinux.sh +++ b/testsuite/inplace-selinux.sh @@ -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_ |