From ee6107560e96ce8047939edb5fac81d11f29dd11 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Tue, 14 Feb 2012 10:28:36 +0200 Subject: test: Fix scan method to work against technology api in test-connman --- test/test-connman | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/test-connman b/test/test-connman index b36b4c53..e2ff23a3 100755 --- a/test/test-connman +++ b/test/test-connman @@ -18,7 +18,7 @@ if len(sys.argv) < 2: print " disconnect " print " remove " print "" - print " scan [type]" + print " scan " print " enable " print " disable " print " offlinemode [on|off]" @@ -140,9 +140,10 @@ elif sys.argv[1] in ["remove"]: elif sys.argv[1] == "scan": if len(sys.argv) > 2: - manager.RequestScan(sys.argv[2]) - else: - manager.RequestScan("") + path = "/net/connman/technology/" + sys.argv[2] + technology = dbus.Interface(bus.get_object("net.connman", path), + "net.connman.Technology") + technology.Scan() elif sys.argv[1] == "enable": if len(sys.argv) > 2: -- cgit v1.2.3