summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-31 20:12:27 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-03-31 20:12:27 -0700
commit73f8a9f2b49a5db3595a90d26260fa53d7ad86d2 (patch)
tree5bc5dd71603e3da3bf90986f184bfb591af139b3 /test
parent7ee20adce0d35e0be30c3b41ee2c673ab9f7a925 (diff)
downloadconnman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.tar.gz
connman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.tar.bz2
connman-73f8a9f2b49a5db3595a90d26260fa53d7ad86d2.zip
Handle service list correctly
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-profiles9
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