From a1c276e1f861719db7dcc451720dce1d3293e55e Mon Sep 17 00:00:00 2001 From: Paul Moore Date: Thu, 5 Sep 2024 12:47:11 -0400 Subject: [PATCH] tests/amcast_joinpart: fix the test to support "interpreted" output Signed-off-by: Paul Moore --- tests/amcast_joinpart/test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/amcast_joinpart/test b/tests/amcast_joinpart/test index dc331af..8c70fcd 100755 --- a/tests/amcast_joinpart/test +++ b/tests/amcast_joinpart/test @@ -98,12 +98,12 @@ my $found_event_listener_disconnect = 0; while ( $line = <$fh_out> ) { if ( $line =~ /^type=(EVENT_LISTENER|UNKNOWN\[1335\]) / ) { - if ( $line =~ / nl-mcgrp=1 op=((dis|)connect) res=(yes|no)/ ) { + if ( $line =~ / nl-mcgrp=(audit-netlink-multicast|1) /) { $found_event_listener = 1; - if ( $1 eq "connect" ) { + if ( $line =~ / op=connect / ) { $found_event_listener_connect = 1; } - if ( $1 eq "disconnect" ) { + if ( $line =~ / op=disconnect / ) { $found_event_listener_disconnect = 1; } }