]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: let curl show a potential error in silent mode
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Apr 2024 15:04:50 +0000 (17:04 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 9 Apr 2024 19:39:46 +0000 (21:39 +0200)
commitbfd30e8af64a0d39ad110258dca69be919f6df34
tree1baa65432ce67aba176e10b901d76d2636f6b434
parentd4e11f30bcfb9c781c7c4e4415b5542347cdeada
test: let curl show a potential error in silent mode

I collected a couple of fails in this particular test, but without any
output they're impossible to debug. Let's make this slightly less
annoying and let curl show an error (if any) even in silent mode.

This patch uncovers that curl has been (silently) complaining about not
being able to write to the output destination, because `grep -q`
short-circuits on the first match and doesn't bother reading the rest,
so replace `grep -q` with `grep ... >/dev/null` to force grep to always
read the whole thing from curl.
test/units/testsuite-04.journal-gatewayd.sh