mirror of git://git.sysmocom.de/ofono
test: add Settings dict parsing for CDMA ConnMan
This commit is contained in:
parent
73a99ed5ce
commit
823038358e
|
@ -62,6 +62,16 @@ for path, properties in modems:
|
||||||
for i in properties[key]:
|
for i in properties[key]:
|
||||||
val += "[" + i + " = "
|
val += "[" + i + " = "
|
||||||
val += str(int(properties[key][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:
|
else:
|
||||||
val = str(properties[key])
|
val = str(properties[key])
|
||||||
print " %s = %s" % (key, val)
|
print " %s = %s" % (key, val)
|
||||||
|
|
Loading…
Reference in New Issue