From 01a2495a833d8e8d83bd5f0ec6c608fedabd4dbb Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Wed, 17 Oct 2012 17:38:38 +0300 Subject: [PATCH] test: List only specified adapter's devices in list-devices --- test/test-device | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-device b/test/test-device index 12cadb063..720c945b0 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) -- 2.47.3