summaryrefslogtreecommitdiff
path: root/test/list-providers
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@nokia.com>2010-10-07 10:40:05 +0300
committerMarcel Holtmann <marcel@holtmann.org>2010-10-07 13:31:47 +0200
commit8e273c5f42e72158da0a11529dcdad11a7079d95 (patch)
tree27d92e3a0c587453cf33f9628ead29f1a35f389b /test/list-providers
parent2aed7a549e25e099431e0543e19eca8175452141 (diff)
downloadconnman-8e273c5f42e72158da0a11529dcdad11a7079d95.tar.gz
connman-8e273c5f42e72158da0a11529dcdad11a7079d95.tar.bz2
connman-8e273c5f42e72158da0a11529dcdad11a7079d95.zip
Pretty printers for proxy settings in various test tool.
Diffstat (limited to 'test/list-providers')
-rwxr-xr-xtest/list-providers8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/list-providers b/test/list-providers
index 94375d55..84976859 100755
--- a/test/list-providers
+++ b/test/list-providers
@@ -9,7 +9,10 @@ def extract_values(values):
if key in ["PrefixLength"]:
val += "%s" % (int(values[key]))
else:
- val += str(values[key])
+ if key in ["Servers", "Excludes"]:
+ val += extract_list(values[key])
+ else:
+ val += str(values[key])
val += " }"
return val
@@ -38,7 +41,8 @@ for path in properties["Providers"]:
for key in properties.keys():
if key in ["IPv4", "IPv4.Configuration",
"IPv6", "IPv6.Configuration",
- "Proxy", "Ethernet", "Provider"]:
+ "Proxy", "Proxy.Configuration",
+ "Ethernet", "Provider"]:
val = extract_values(properties[key])
elif key in ["Nameservers", "Nameservers.Configuration",
"Domains", "Domains.Configuration"]: