]> 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)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 May 2025 12:42:34 +0000 (14:42 +0200)
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
 }