summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2012-02-14 10:28:36 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-14 14:55:56 +0100
commitee6107560e96ce8047939edb5fac81d11f29dd11 (patch)
tree63117106eb0e31ea2aa0a28502369fad06da7396 /test
parent11863bb1a422e563c1e95bbe91db83b56ca58f6b (diff)
downloadconnman-ee6107560e96ce8047939edb5fac81d11f29dd11.tar.gz
connman-ee6107560e96ce8047939edb5fac81d11f29dd11.tar.bz2
connman-ee6107560e96ce8047939edb5fac81d11f29dd11.zip
test: Fix scan method to work against technology api in test-connman
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-connman9
1 files changed, 5 insertions, 4 deletions
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 <service>"
print " remove <service>"
print ""
- print " scan [type]"
+ print " scan <type>"
print " enable <type>"
print " disable <type>"
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: