summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-10 13:19:37 +0100
committerDaniel Wagner <daniel.wagner@bmw-carit.de>2012-01-10 13:20:49 +0100
commitc23ecc145cbee3fe43210d3c9a7de98d803209d5 (patch)
tree0b84799539927f3962ba73506b95746238bdd89e
parent0cdeb2a1928054549b1927d6e3b3b9a15588f769 (diff)
downloadconnman-c23ecc145cbee3fe43210d3c9a7de98d803209d5.tar.gz
connman-c23ecc145cbee3fe43210d3c9a7de98d803209d5.tar.bz2
connman-c23ecc145cbee3fe43210d3c9a7de98d803209d5.zip
test-connman: Remove unsupported passphrase support
-rwxr-xr-xtest/test-connman32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/test-connman b/test/test-connman
index 2d9223dd..8ce1ac1f 100755
--- a/test/test-connman
+++ b/test/test-connman
@@ -13,7 +13,6 @@ if len(sys.argv) < 2:
print ""
print " state"
print " services"
- print " passphrase <service> [passphrase]"
print " autoconnect <service> [autoconnect]"
print " connect <service>"
print " disconnect <service>"
@@ -56,37 +55,6 @@ elif sys.argv[1] in ["services", "list", "show"]:
print_services(properties["Services"])
-elif sys.argv[1] in ["passphrase", "pass"]:
- if (len(sys.argv) < 3):
- print "Need at least service parameter"
- sys.exit(1)
-
- path = "/net/connman/service/" + sys.argv[2]
-
- service = dbus.Interface(bus.get_object("net.connman", path),
- "net.connman.Service")
-
- if (len(sys.argv) > 3):
- passphrase = sys.argv[3]
-
- service.SetProperty("Passphrase", passphrase);
-
- print "Passphrase %s set for %s" % (passphrase, sys.argv[2])
- else:
- properties = service.GetProperties()
-
- if "Name" in properties.keys():
- name = properties["Name"]
- else:
- name = "{" + properties["Type"] + "}"
-
- if "Passphrase" in properties.keys():
- passphrase = properties["Passphrase"]
- else:
- passphrase = "not set"
-
- print "Passphrase for %s is %s" % (name, passphrase)
-
elif sys.argv[1] in ["autoconnect", "autoconn"]:
if (len(sys.argv) < 3):
print "Need at least service parameter"