From bc6506c0a12c41f0d69299bd62f6e2abcb5d58a0 Mon Sep 17 00:00:00 2001 From: mloviska Date: Thu, 24 Nov 2022 14:03:44 +0100 Subject: [PATCH] Fix check for newly registered AVC alerts Followup for https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/15940 - VR: http://kepler.suse.cz/tests/19664# --- lib/consoletest.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/consoletest.pm b/lib/consoletest.pm index c5aea0487f56..ac0798ca2c2b 100644 --- a/lib/consoletest.pm +++ b/lib/consoletest.pm @@ -72,7 +72,7 @@ sub record_avc_selinux_alerts { my @logged = split(/\n/, script_output('ausearch -m avc -r', proceed_on_failure => 1)); # no new messages are registered - if ($avc_record{end} <= $avc_record{start}) { + if (scalar @logged <= $avc_record{start}) { return; }