diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/list-devices | 6 | ||||
-rwxr-xr-x | test/list-profiles | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/test/list-devices b/test/list-devices index 3c1b82e9..d7b9331d 100755 --- a/test/list-devices +++ b/test/list-devices @@ -7,15 +7,13 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") -elements = manager.ListElements() +properties = manager.GetProperties() -for path in elements: +for path in properties["Devices"]: element = dbus.Interface(bus.get_object("org.moblin.connman", path), "org.moblin.connman.Element") properties = element.GetProperties() - if (properties["Type"] != "device"): - continue print "[ %s ]" % (path) diff --git a/test/list-profiles b/test/list-profiles index fcf1830c..025f3cf1 100755 --- a/test/list-profiles +++ b/test/list-profiles @@ -7,9 +7,9 @@ bus = dbus.SystemBus() manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), "org.moblin.connman.Manager") -profiles = manager.ListProfiles() +properties = manager.GetProperties() -for path in profiles: +for path in properties["Profiles"]: print "[ %s ]" % (path) element = dbus.Interface(bus.get_object("org.moblin.connman", path), |