summaryrefslogtreecommitdiff
path: root/test/test-oob
diff options
context:
space:
mode:
authorMikel Astiz <mikel.astiz@bmw-carit.de>2012-12-05 13:51:39 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-12-05 16:41:02 +0200
commit67dab2d2aeec9ab895da6afd528ec0c63e657ff4 (patch)
treea9efa382603f2635d9a1a9c689d917e940104809 /test/test-oob
parent36128655eb69519ff6eb4b896a507249bb8a9c9d (diff)
downloadbluez-67dab2d2aeec9ab895da6afd528ec0c63e657ff4.tar.gz
test: Avoid using Adapter.FindDevice()
The method is now deprecated and thus the replacement utility library should be used in the test scripts.
Diffstat (limited to 'test/test-oob')
-rwxr-xr-xtest/test-oob12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/test-oob b/test/test-oob
index 34e042ddb..87c558f63 100755
--- a/test/test-oob
+++ b/test/test-oob
@@ -42,14 +42,18 @@ if __name__ == '__main__':
print("Removing any existing bond...")
try:
- device = adapter0.FindDevice(adapter1_address)
- adapter0.RemoveDevice(device)
+ dev = bluezutils.find_device_in_objects(managed_objects,
+ adapter1_address,
+ adapter0_address)
+ adapter0.RemoveDevice(dev.object_path)
except:
pass
try:
- device = adapter1.FindDevice(adapter0_address)
- adapter1.RemoveDevice(device)
+ dev = bluezutils.find_device_in_objects(managed_objects,
+ adapter0_address,
+ adapter1_address)
+ adapter1.RemoveDevice(dev.object_path)
except:
pass