From c64534135dc32cf532e86952fe68b2d9f4dafc06 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Wed, 21 Sep 2016 18:51:56 +0200 Subject: [PATCH] test: Switch monitor-iwd to org.freedesktop.DBus.Properties Other test scripts and autotests don't seem to need changes. --- test/monitor-iwd | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/test/monitor-iwd b/test/monitor-iwd index 8753878a..4771f50b 100755 --- a/test/monitor-iwd +++ b/test/monitor-iwd @@ -52,9 +52,10 @@ def pretty(d): return str(d) -def property_changed(name, value, path, interface): +def properties_changed(interface, changed, invalidated, path): iface = interface[interface.rfind(".") + 1:] - print("{%s} [%s] %s = %s" % (iface, path, name, pretty(value))) + for name, value in changed.items(): + print("{%s} [%s] %s = %s" % (iface, path, name, pretty(value))) relevant_ifaces = [ "net.connman.iwd.Device", "net.connman.iwd.Adapter", @@ -83,11 +84,11 @@ if __name__ == '__main__': bus = dbus.SystemBus() - bus.add_signal_receiver(property_changed, + bus.add_signal_receiver(properties_changed, bus_name="net.connman.iwd", - signal_name = "PropertyChanged", - path_keyword="path", - interface_keyword="interface") + dbus_interface="org.freedesktop.DBus.Properties", + signal_name="PropertiesChanged", + path_keyword="path") bus.add_signal_receiver(interfaces_added, bus_name="net.connman.iwd", dbus_interface="org.freedesktop.DBus.ObjectManager",