From: Frantisek Sumsal Date: Fri, 29 Dec 2023 12:28:05 +0000 (+0100) Subject: test: show journal entries matching the test's syslog identifier as well X-Git-Tag: v256-rc1~1362^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F30656%2Fhead;p=thirdparty%2Fsystemd.git test: show journal entries matching the test's syslog identifier as well --- diff --git a/test/test-functions b/test/test-functions index 5af7b8cd91d..77da9259d73 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1840,7 +1840,8 @@ save_journal() { # Show messages from the testsuite-XX.service or messages with priority "warning" and higher echo " --- $source_dir ---" "$JOURNALCTL" --no-pager --no-hostname -o short-monotonic -D "$source_dir" \ - _SYSTEMD_UNIT="testsuite-${TESTID:?}.service" + PRIORITY=4 + PRIORITY=3 + PRIORITY=2 + PRIORITY=1 + PRIORITY=0 + _SYSTEMD_UNIT="testsuite-${TESTID:?}.service" + SYSLOG_IDENTIFIER="testsuite-$TESTID.sh" + \ + PRIORITY=4 + PRIORITY=3 + PRIORITY=2 + PRIORITY=1 + PRIORITY=0 if get_bool "$save"; then # If we don't have systemd-journal-remote copy all journals from /var/log/journal/