]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add sync request until all logging about the test unit is done
authorLennart Poettering <lennart@poettering.net>
Tue, 8 Apr 2025 16:35:35 +0000 (18:35 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 4 Aug 2025 15:41:22 +0000 (16:41 +0100)
(cherry picked from commit 80ab0e04d38017fa9db0c4af1bdca8f83e4234e4)

test/units/TEST-04-JOURNAL.LogFilterPatterns.sh

index 79482d60780c770effa0db68116e44eff6c16eea..277e367b3291d9bffe2b9d714205160f04e83979 100755 (executable)
@@ -36,6 +36,7 @@ run_service_and_fetch_logs() {
     fi
 
     systemctl start "$unit"
+    journalctl --sync
     journalctl -q -u "$unit" -I -p notice
 }