From 6cd899c1729cdc15ac81350ca171021e34109c05 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 20 Dec 2012 00:10:45 +0200 Subject: [PATCH] test: Remove non-existent features from test-device --- test/test-device | 31 ------------------------------- 1 file changed, 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) -- 2.47.3