diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-03-10 22:07:21 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-03-15 17:11:59 -0500 |
commit | 4b972b3f7a8adcb6849c25123af34cf65d974308 (patch) | |
tree | dc451ddb4b564d25fdb07562472e774c510371a6 | |
parent | bc0cc47608e514cca8d623f4619c1e395e21063b (diff) | |
download | ofono-4b972b3f7a8adcb6849c25123af34cf65d974308.tar.bz2 |
test: Update list-contexts to the new API
-rwxr-xr-x | test/list-contexts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/list-contexts b/test/list-contexts index 68dae6a7..ed4af882 100755 --- 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 += " }" |