diff options
author | Christian Lam <christian.lam@nokia.com> | 2011-01-21 15:06:50 -0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-03-17 14:23:26 -0500 |
commit | 823038358e7c57bf29ae6b835f08ec0d0592ee8c (patch) | |
tree | 2598158452dd239523c3340d0c0ff362192c9604 /test/list-modems | |
parent | 73a99ed5cef47844d30e1d21ea50231ef286de04 (diff) | |
download | ofono-823038358e7c57bf29ae6b835f08ec0d0592ee8c.tar.bz2 |
test: add Settings dict parsing for CDMA ConnMan
Diffstat (limited to 'test/list-modems')
-rwxr-xr-x | test/list-modems | 10 |
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) |