diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-26 13:01:36 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2012-02-28 13:31:54 +0100 |
commit | fd01499d9d9de5fb4c6f8cf975260db6ce353525 (patch) | |
tree | 874e4f7af31d9640a4f31c8edab43be9daa9ef71 /test | |
parent | 32c28c0d4c10c7ea1f300802169bd4a605527b1f (diff) | |
download | connman-fd01499d9d9de5fb4c6f8cf975260db6ce353525.tar.gz connman-fd01499d9d9de5fb4c6f8cf975260db6ce353525.tar.bz2 connman-fd01499d9d9de5fb4c6f8cf975260db6ce353525.zip |
test-connman: Use GetServices() instead GetProperties()
GetProperties() does not return the services path anymore. Instead
the GetServices() method should be used.
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-connman | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/test/test-connman b/test/test-connman index e2ff23a3..473af628 100755 --- a/test/test-connman +++ b/test/test-connman @@ -25,12 +25,7 @@ if len(sys.argv) < 2: sys.exit(1) def print_services(services): - for path in services: - service = dbus.Interface(bus.get_object("net.connman", path), - "net.connman.Service") - - properties = service.GetProperties() - + for path, properties in services: identifier = path[path.rfind("/") + 1:] if properties["Favorite"] == dbus.Boolean(1): @@ -51,9 +46,7 @@ if sys.argv[1] == "state": print "System is %s" % (properties["State"]) elif sys.argv[1] in ["services", "list", "show"]: - properties = manager.GetProperties() - - print_services(properties["Services"]) + print_services(manager.GetServices()) elif sys.argv[1] in ["autoconnect", "autoconn"]: if (len(sys.argv) < 3): |