test: add Settings dict parsing for CDMA ConnMan

This commit is contained in:
Christian Lam 2011-01-21 15:06:50 -08:00 committed by Denis Kenzior
parent 73a99ed5ce
commit 823038358e
1 changed files with 10 additions and 0 deletions

View File

@ -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)