From 1c698db14c576b1d776c4d259a49ed542d892424 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 17 Dec 2012 15:02:05 +0200 Subject: [PATCH] test: Make simple-agent accept BlueZ 4 style invocation --- test/simple-agent | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/simple-agent b/test/simple-agent index 5fe9b0172..deb64971f 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -159,6 +159,11 @@ if __name__ == '__main__': print("Agent registered") + # Fix-up old style invocation (BlueZ 4) + if len(args) > 0 and args[0].startswith("hci"): + options.adapter_pattern = args[0] + del args[:1] + if len(args) > 0: device = bluezutils.find_device(args[0], options.adapter_pattern) -- 2.47.3