diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-15 01:30:13 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-15 01:30:13 +0100 |
commit | 800c08ed4d45aa21f6540b49e34a8a36d44f2542 (patch) | |
tree | 9f75a39a5b3f5ad49332174abd3e15de7289418a /test | |
parent | b7ccda2018ca17b559d079503c49b330ea9d12f2 (diff) | |
download | connman-800c08ed4d45aa21f6540b49e34a8a36d44f2542.tar.gz connman-800c08ed4d45aa21f6540b49e34a8a36d44f2542.tar.bz2 connman-800c08ed4d45aa21f6540b49e34a8a36d44f2542.zip |
Print networks more prettier and easier to read
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-manager | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test/test-manager b/test/test-manager index 5ed672aa..afeb110f 100755 --- a/test/test-manager +++ b/test/test-manager @@ -28,10 +28,19 @@ def print_properties(key, value): properties = obj.GetProperties() for key in properties.keys(): + if (key == "Networks"): + continue print " %s = %s" % (key, properties[key]) + if "Networks" in properties.keys(): + list = "" + for path in properties["Networks"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Networks = [ %s]" % (list) + for key in properties.keys(): - if (key in ["Profiles", "Devices", "Connections"]): + if key in ["Profiles", "Devices", "Connections"]: print_properties(key, properties[key]) else: print "%s" % (key) |