From 7ceb215c910f42ecc71ff06b74e88954218c7fc6 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Tue, 3 Oct 2023 13:45:42 -0400 Subject: [PATCH] Filter out journald rotate messages. On el9 distros systemd-journald will log rotation events into kmesg. Since the default logs on VM images are transient only, they are rotated several times during a single test cycle, causing test failures. Signed-off-by: Auke Kok --- tests/funcs/filter.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/funcs/filter.sh b/tests/funcs/filter.sh index 2ff9d286..589eafe5 100644 --- a/tests/funcs/filter.sh +++ b/tests/funcs/filter.sh @@ -88,5 +88,8 @@ t_filter_dmesg() # change-devices causes loop device resizing re="$re|loop[0-9].* detected capacity change from.*" + # ignore systemd-journal rotating + re="$re|systemd-journald.*" + egrep -v "($re)" }