summaryrefslogtreecommitdiff
path: root/test/list-services
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-07-28 19:59:05 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-07-29 02:12:54 +0200
commitecb349ca3e73b55f745642be49c2e6f0ac7a1a82 (patch)
treea746ffd6c7ddfd11740598140418205b7b95dfad /test/list-services
parent7f54267c96a58191004e30ac2c01acf369f1df33 (diff)
downloadconnman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.tar.gz
connman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.tar.bz2
connman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.zip
Update test scripts for IPv6 support
Diffstat (limited to 'test/list-services')
-rwxr-xr-xtest/list-services9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/list-services b/test/list-services
index 952211d4..bd962377 100755
--- a/test/list-services
+++ b/test/list-services
@@ -6,7 +6,10 @@ def extract_values(values):
val = "{"
for key in values.keys():
val += " " + key + "="
- val += str(values[key])
+ if key in ["PrefixLength"]:
+ val += "%s" % (int(values[key]))
+ else:
+ val += str(values[key])
val += " }"
return val
@@ -33,7 +36,9 @@ for path in properties["Services"]:
print "[ %s ]" % (path)
for key in properties.keys():
- if key in ["IPv4", "IPv4.Configuration", "Proxy", "Ethernet"]:
+ if key in ["IPv4", "IPv4.Configuration",
+ "IPv6", "IPv6.Configuration",
+ "Proxy", "Ethernet"]:
val = extract_values(properties[key])
elif key in ["Nameservers", "Nameservers.Configuration",
"Domains", "Domains.Configuration"]: