projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a99ed
)
test: add Settings dict parsing for CDMA ConnMan
author
Christian Lam
<christian.lam@nokia.com>
Fri, 21 Jan 2011 23:06:50 +0000
(15:06 -0800)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 17 Mar 2011 19:23:26 +0000
(14:23 -0500)
test/list-modems
patch
|
blob
|
history
diff --git
a/test/list-modems
b/test/list-modems
index
249ae15
..
662a3c7
100755
(executable)
--- 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)