diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-17 15:02:05 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-17 15:02:05 +0200 |
commit | 1c698db14c576b1d776c4d259a49ed542d892424 (patch) | |
tree | 6b95cd5884fd2a519c35eb2aaf40013764dfd7ee /test | |
parent | f9ceb20d830a1b1c5548a50992b5cce3ad2d20d3 (diff) | |
download | bluez-1c698db14c576b1d776c4d259a49ed542d892424.tar.gz |
test: Make simple-agent accept BlueZ 4 style invocation
Diffstat (limited to 'test')
-rwxr-xr-x | test/simple-agent | 5 |
1 files changed, 5 insertions, 0 deletions
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) |