mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-04 01:24:42 +08:00
test: List only specified adapter's devices in list-devices
This commit is contained in:
parent
340cdeb404
commit
01a2495a83
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user