summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-03-19 13:03:26 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-03-20 10:16:04 (GMT)
commit03f7aa7fc8dec052d63820aa6d71562feadf4725 (patch)
tree466210ab2ddbeefd772a2277ad7b171f0a25bb89 /test
parenteb4a4ea46c7707f061d734b5f0ceb4ca7465fa47 (diff)
downloadconnman-03f7aa7fc8dec052d63820aa6d71562feadf4725.zip
connman-03f7aa7fc8dec052d63820aa6d71562feadf4725.tar.gz
connman-03f7aa7fc8dec052d63820aa6d71562feadf4725.tar.bz2
list-services: Print only identifier instead of path
test-connman services also reports the identifier only. This makes copy&paste with the mouse a bit simpler.
Diffstat (limited to 'test')
-rwxr-xr-xtest/list-services3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/list-services b/test/list-services
index be447b8..def1c07 100755
--- a/test/list-services
+++ b/test/list-services
@@ -31,7 +31,8 @@ manager = dbus.Interface(bus.get_object("net.connman", "/"),
for path, properties in manager.GetServices():
service = dbus.Interface(bus.get_object("net.connman", path),
"net.connman.Service")
- print "[ %s ]" % (path)
+ identifier = path[path.rfind("/") + 1:]
+ print "[ %s ]" % (identifier)
for key in properties.keys():
if key in ["IPv4", "IPv4.Configuration",