]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: check if we can use --merge with --follow
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 19 May 2023 15:37:17 +0000 (17:37 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 19 May 2023 18:03:34 +0000 (20:03 +0200)
Provides coverage for #24565.

test/units/testsuite-04.sh

index 3c4c8afd53888bd9f51bdace2f4450d9b63b77d1..6ed41f24ea51fb277c6b40378b994f3ab92a41d1 100755 (executable)
@@ -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:?}"