diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-02-16 11:52:11 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-02-16 07:43:23 -0800 |
commit | c9479134d6444c9e9da98ad5bb5ba4891a86d51b (patch) | |
tree | 29e4b642844171ce58c757e0da0b9cafb77a51ef /test/show-introspection | |
parent | 913898ed5da9c9721c90d49bfc64a8e2b1ad4b5c (diff) | |
download | connman-c9479134d6444c9e9da98ad5bb5ba4891a86d51b.tar.gz connman-c9479134d6444c9e9da98ad5bb5ba4891a86d51b.tar.bz2 connman-c9479134d6444c9e9da98ad5bb5ba4891a86d51b.zip |
Update all test scripts using devices properties directly
We need to go through the technology list first in order to access the
devices properties.
Diffstat (limited to 'test/show-introspection')
-rwxr-xr-x | test/show-introspection | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/show-introspection b/test/show-introspection index bbf93c8b..5e392c75 100755 --- a/test/show-introspection +++ b/test/show-introspection @@ -14,8 +14,14 @@ manager = dbus.Interface(bus.get_object("org.moblin.connman", "/"), properties = manager.GetProperties() -for path in properties["Devices"]: - object = dbus.Interface(bus.get_object("org.moblin.connman", path), - "org.freedesktop.DBus.Introspectable") +for path in properties["Technologies"]: + technology = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.moblin.connman.Technology") - print object.Introspect() + properties = technology.GetProperties() + + for path in properties["Devices"]: + object = dbus.Interface(bus.get_object("org.moblin.connman", path), + "org.freedesktop.DBus.Introspectable") + + print object.Introspect() |