From c1ba1030597657d0f29f22d85ea8bfda8e231093 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Tue, 20 Sep 2016 07:36:28 -0700 Subject: [PATCH] test-dbus.py: adapt to modified dbus-monitor output Recent distros like Debian Stretch have newer dbus-monitor with extended content that no longer matched the regex used before. The relaxed regex works with old and new dbus-monitor. --- test/test-dbus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-dbus.py b/test/test-dbus.py index 2f26f002..7a218f8b 100755 --- a/test/test-dbus.py +++ b/test/test-dbus.py @@ -133,7 +133,7 @@ of the regular expressions''' def GrepNotifications(dbuslog): '''finds all Notify calls and returns their parameters as list of line lists''' - return re.findall(r'^method call .* dest=.* .*interface=org.freedesktop.Notifications; member=Notify\n((?:^ .*\n)*)', + return re.findall(r'^method call .* interface=org.freedesktop.Notifications; member=Notify\n((?:^ .*\n)*)', dbuslog, re.MULTILINE)