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.
This commit is contained in:
Patrick Ohly 2016-09-20 07:36:28 -07:00
parent ad33e1fbba
commit c1ba103059
1 changed files with 1 additions and 1 deletions

View File

@ -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)