summaryrefslogtreecommitdiffstats
path: root/test/list-modems
diff options
context:
space:
mode:
authorChristian Lam <christian.lam@nokia.com>2011-01-21 15:06:50 -0800
committerDenis Kenzior <denkenz@gmail.com>2011-03-17 14:23:26 -0500
commit823038358e7c57bf29ae6b835f08ec0d0592ee8c (patch)
tree2598158452dd239523c3340d0c0ff362192c9604 /test/list-modems
parent73a99ed5cef47844d30e1d21ea50231ef286de04 (diff)
downloadofono-823038358e7c57bf29ae6b835f08ec0d0592ee8c.tar.bz2
test: add Settings dict parsing for CDMA ConnMan
Diffstat (limited to 'test/list-modems')
-rwxr-xr-xtest/list-modems10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/list-modems b/test/list-modems
index 249ae15d..662a3c76 100755
--- a/test/list-modems
+++ b/test/list-modems
@@ -62,6 +62,16 @@ for path, properties in modems:
for i in properties[key]:
val += "[" + i + " = "
val += str(int(properties[key][i])) + "] "
+ elif key in ["Settings"]:
+ val = "{"
+ for i in properties[key].keys():
+ val += " " + i + "="
+ if i in ["DomainNameServers"]:
+ for n in properties[key][i]:
+ val += n + ","
+ else:
+ val += properties[key][i]
+ val += " }"
else:
val = str(properties[key])
print " %s = %s" % (key, val)