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:
bc0cc47
)
test: Update list-contexts to the new API
author
Denis Kenzior
<denkenz@gmail.com>
Fri, 11 Mar 2011 04:07:21 +0000
(22:07 -0600)
committer
Denis Kenzior
<denkenz@gmail.com>
Tue, 15 Mar 2011 22:11:59 +0000
(17:11 -0500)
test/list-contexts
patch
|
blob
|
history
diff --git
a/test/list-contexts
b/test/list-contexts
index
68dae6a
..
ed4af88
100755
(executable)
--- a/
test/list-contexts
+++ b/
test/list-contexts
@@
-24,13
+24,16
@@
for path, properties in modems:
print " [ %s ]" % (path)
for key in properties.keys():
- if key in ["Settings"]:
+ if key in ["Settings"]
or key in ["IPv6.Settings"]
:
val = "{"
for i in properties[key].keys():
val += " " + i + "="
if i in ["DomainNameServers"]:
for n in properties[key][i]:
val += n + ","
+ elif i in ["PrefixLength"]:
+ p = int(properties[key][i])
+ val += str(p)
else:
val += properties[key][i]
val += " }"