Fix the output of the list command of test-device
The list command of test-device was giving just Devices object paths,
not very useful, not it shows the device address and its Alias.
diff --git a/test/test-device b/test/test-device
index 770cc6e..a04ff35 100755
--- a/test/test-device
+++ b/test/test-device
@@ -40,8 +40,12 @@
sys.exit(1)
if (args[0] == "list"):
- list = adapter.ListDevices()
- print list
+ for path in adapter.ListDevices():
+ device = dbus.Interface(bus.get_object("org.bluez", path),
+ "org.bluez.Device")
+ properties = device.GetProperties()
+ print "%s %s" % (properties["Address"], properties["Alias"])
+
sys.exit(0)
if (args[0] == "create"):