Skip to content

Commit b18473f

Browse files
committed
agent(rhel8): call grep with -q
As we don't care about the matched output, only that it matched. Follow-up for 7a37f0b.
1 parent 7a37f0b commit b18473f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

agent/testsuite-rhel8.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ for t in test/TEST-??-*; do
155155
# about them, so let's tell it to whitelist all known syscalls
156156
export NSPAWN_ARGUMENTS="--system-call-filter=@known"
157157

158-
if grep 'seccomp_init_for_arch(.*SCMP_ACT_ERRNO(EPERM)' src/nspawn/nspawn-seccomp.c; then
158+
if grep -q 'seccomp_init_for_arch(.*SCMP_ACT_ERRNO(EPERM)' src/nspawn/nspawn-seccomp.c; then
159159
# In very old RHEL 8 systemd versions (8.6.0 and older) we're missing patch series [0] that configure
160160
# nspawn's seccomp filters to return ENOSYS instead of EPERM for unknown syscalls. And given we have
161161
# to run the CI for RHEL 8 systemd on C9S, we get a bunch of unknown syscalls when running nspawn which

0 commit comments

Comments
 (0)