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:
parent
ad33e1fbba
commit
c1ba103059
|
@ -133,7 +133,7 @@ of the regular expressions'''
|
||||||
|
|
||||||
def GrepNotifications(dbuslog):
|
def GrepNotifications(dbuslog):
|
||||||
'''finds all Notify calls and returns their parameters as list of line lists'''
|
'''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,
|
dbuslog,
|
||||||
re.MULTILINE)
|
re.MULTILINE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue