test: List only specified adapter's devices in list-devices

This commit is contained in:
Johan Hedberg 2012-10-17 17:38:38 +03:00
parent 340cdeb404
commit 01a2495a83

View File

@ -58,6 +58,8 @@ if (args[0] == "list"):
if "org.bluez.Device" not in interfaces:
continue
properties = interfaces["org.bluez.Device"]
if properties["Adapter"] != adapter_path:
continue;
print("%s %s" % (properties["Address"], properties["Alias"]))
sys.exit(0)