diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:09:43 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:09:43 -0700 |
commit | 7ee20adce0d35e0be30c3b41ee2c673ab9f7a925 (patch) | |
tree | b5ffa48cb041f8df6f1724671024f903d984f49b /test | |
parent | b6f52b052e6bf83a520cb0241e61bc894653b79f (diff) | |
download | connman-7ee20adce0d35e0be30c3b41ee2c673ab9f7a925.tar.gz connman-7ee20adce0d35e0be30c3b41ee2c673ab9f7a925.tar.bz2 connman-7ee20adce0d35e0be30c3b41ee2c673ab9f7a925.zip |
Add support for listing service details
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-manager | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/test-manager b/test/test-manager index 4b056f9f..28a20dee 100755 --- a/test/test-manager +++ b/test/test-manager @@ -30,7 +30,7 @@ def print_properties(key, value): properties = obj.GetProperties() for key in properties.keys(): - if key == "Networks": + if key in ["Networks", "Services"]: continue if key in ["Powered", "Scanning", "Connected", @@ -52,6 +52,12 @@ def print_properties(key, value): val = str(path) list = list + val[val.rfind("/") + 1:] + " " print " Networks = [ %s]" % (list) + if "Services" in properties.keys(): + list = "" + for path in properties["Services"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Services = [ %s]" % (list) for key in properties.keys(): if key in ["Profiles", "Devices", "Connections", "Services"]: |