diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-28 19:59:05 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-07-29 02:12:54 +0200 |
commit | ecb349ca3e73b55f745642be49c2e6f0ac7a1a82 (patch) | |
tree | a746ffd6c7ddfd11740598140418205b7b95dfad /test/list-services | |
parent | 7f54267c96a58191004e30ac2c01acf369f1df33 (diff) | |
download | connman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.tar.gz connman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.tar.bz2 connman-ecb349ca3e73b55f745642be49c2e6f0ac7a1a82.zip |
Update test scripts for IPv6 support
Diffstat (limited to 'test/list-services')
-rwxr-xr-x | test/list-services | 9 |
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"]: |