From 7ee20adce0d35e0be30c3b41ee2c673ab9f7a925 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 31 Mar 2009 20:09:43 -0700 Subject: [PATCH] Add support for listing service details --- test/test-manager | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test-manager b/test/test-manager index 4b056f9..28a20de 100755 --- a/test/test-manager +++ b/test/test-manager @@ -30,7 +30,7 @@ def print_properties(key, value): properties = obj.GetProperties() for key in properties.keys(): - if key == "Networks": + if key in ["Networks", "Services"]: continue if key in ["Powered", "Scanning", "Connected", @@ -52,6 +52,12 @@ def print_properties(key, value): val = str(path) list = list + val[val.rfind("/") + 1:] + " " print " Networks = [ %s]" % (list) + if "Services" in properties.keys(): + list = "" + for path in properties["Services"]: + val = str(path) + list = list + val[val.rfind("/") + 1:] + " " + print " Services = [ %s]" % (list) for key in properties.keys(): if key in ["Profiles", "Devices", "Connections", "Services"]: -- 2.7.4