diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:12:27 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-31 20:12:27 -0700 |
commit | 73f8a9f2b49a5db3595a90d26260fa53d7ad86d2 (patch) | |
tree | 5bc5dd71603e3da3bf90986f184bfb591af139b3 /test/list-profiles | |
parent | 7ee20adce0d35e0be30c3b41ee2c673ab9f7a925 (diff) | |
download | connman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.tar.gz connman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.tar.bz2 connman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.zip |
Handle service list correctly
Diffstat (limited to 'test/list-profiles')
-rwxr-xr-x | test/list-profiles | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/list-profiles b/test/list-profiles index 47741141..9a68d20e 100755 --- a/test/list-profiles +++ b/test/list-profiles @@ -17,6 +17,13 @@ for path in properties["Profiles"]: properties = profile.GetProperties() for key in properties.keys(): - print " %s = %s" % (key, properties[key]) + if key in ["Services"]: + list = "" + for path in properties["Services"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Services = [ %s]" % (list) + else: + print " %s = %s" % (key, properties[key]) print |