diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-20 00:10:45 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-12-20 00:10:45 +0200 |
commit | 6cd899c1729cdc15ac81350ca171021e34109c05 (patch) | |
tree | 89511e539a9c03b4c6d7a30a58d59dd50ee292c3 /test/test-device | |
parent | ad35b244c910e17cb564e074d89da1c0749d07b4 (diff) | |
download | bluez-6cd899c1729cdc15ac81350ca171021e34109c05.tar.gz |
test: Remove non-existent features from test-device
Diffstat (limited to 'test/test-device')
-rwxr-xr-x | test/test-device | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/test/test-device b/test/test-device index 2be5394cd..1e4597d8e 100755 --- a/test/test-device +++ b/test/test-device @@ -117,24 +117,6 @@ if (args[0] == "disconnect"): device.Disconnect() sys.exit(0) -if (args[0] == "discover"): - if (len(args) < 2): - print("Need address parameter") - else: - device = bluezutils.find_device(args[1], options.dev_id) - if (len(args) < 3): - pattern = "" - else: - pattern = args[2] - services = device.DiscoverServices(pattern); - for key in services.keys(): - p = re.compile(">.*?<") - xml = p.sub("><", services[key].replace("\n", "")) - print("[ 0x%5x ]" % (key)) - print(xml) - print() - sys.exit(0) - if (args[0] == "class"): if (len(args) < 2): print("Need address parameter") @@ -216,18 +198,5 @@ if (args[0] == "blocked"): props.Set("org.bluez.Device1", "Blocked", value) sys.exit(0) -if (args[0] == "services"): - if (len(args) < 2): - print("Need address parameter") - else: - device = bluezutils.find_device(args[1], options.dev_id) - path = device.object_path - props = dbus.Interface(bus.get_object("org.bluez", path), - "org.freedesktop.DBus.Properties") - services = props.Get("org.bluez.Device1", "Services") - for path in services: - print(path) - sys.exit(0) - print("Unknown command") sys.exit(1) |