summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-24 00:25:36 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-24 00:25:36 +0100
commit32432074e42578a5acd4e47be993b81915d70581 (patch)
tree7e28ab6c545022be906369a4df0b7ba033b6f143 /test
parentda9561f7d0b8eee43a26321dcf50527615d9655d (diff)
downloadconnman-32432074e42578a5acd4e47be993b81915d70581.tar.gz
connman-32432074e42578a5acd4e47be993b81915d70581.tar.bz2
connman-32432074e42578a5acd4e47be993b81915d70581.zip
Print signal strength as integer and not character
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-connections6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/list-connections b/test/list-connections
index 806490db..a656e964 100755
--- a/test/list-connections
+++ b/test/list-connections
@@ -18,6 +18,10 @@ for path in properties["Connections"]:
print "[ %s ]" % (path)
for key in properties.keys():
- print " %s = %s" % (key, properties[key])
+ if key == "Strength":
+ val = int(properties[key])
+ else:
+ val = str(properties[key])
+ print " %s = %s" % (key, val)
print