diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-17 17:38:38 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-17 17:38:38 +0300 |
commit | 01a2495a833d8e8d83bd5f0ec6c608fedabd4dbb (patch) | |
tree | 6ac8df0050d23020fa6d12d15ffb1b7c4cc394df | |
parent | 340cdeb404a42806780124039b98676f6e6cc808 (diff) |
test: List only specified adapter's devices in list-devices
-rwxr-xr-x | test/test-device | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-device b/test/test-device index 12cadb06..720c945b 100755 --- a/test/test-device +++ b/test/test-device @@ -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) |