]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: show journal entries matching the test's syslog identifier as well 30656/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 29 Dec 2023 12:28:05 +0000 (13:28 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 29 Dec 2023 20:26:49 +0000 (21:26 +0100)
test/test-functions

index 5af7b8cd91debadf07bfb162f9ae360507002069..77da9259d730dfa4236f6aade2d47b36361aa807 100644 (file)
@@ -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/