From c11c50a53f677f3977f3144b9fc5f02a3516de9f Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Fri, 19 May 2023 17:37:17 +0200 Subject: [PATCH] test: check if we can use --merge with --follow Provides coverage for #24565. --- test/units/testsuite-04.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/units/testsuite-04.sh b/test/units/testsuite-04.sh index 3c4c8afd538..6ed41f24ea5 100755 --- a/test/units/testsuite-04.sh +++ b/test/units/testsuite-04.sh @@ -154,8 +154,12 @@ sleep 3 [[ ! -f "/tmp/i-lose-my-logs" ]] systemctl stop forever-print-hola +set +o pipefail # https://github.com/systemd/systemd/issues/15528 -journalctl --follow --file=/var/log/journal/*/* | head -n1 || [[ $? -eq 1 ]] +journalctl --follow --file=/var/log/journal/*/* | head -n1 | grep . +# https://github.com/systemd/systemd/issues/24565 +journalctl --follow --merge | head -n1 | grep . +set -o pipefail add_logs_filtering_override() { local unit="${1:?}" -- 2.47.3