From: Daniel Wagner Date: Tue, 10 Jan 2012 12:19:37 +0000 (+0100) Subject: test-connman: Remove unsupported passphrase support X-Git-Tag: 0.79~211 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c23ecc145cbee3fe43210d3c9a7de98d803209d5;p=platform%2Fupstream%2Fconnman.git test-connman: Remove unsupported passphrase support --- diff --git a/test/test-connman b/test/test-connman index 2d9223d..8ce1ac1 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 [passphrase]" print " autoconnect [autoconnect]" print " connect " print " disconnect " @@ -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"