summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-07-31 01:00:21 +0200
committerMarcel Holtmann <marcel@holtmann.org>2008-07-31 01:00:21 +0200
commit51671d4aa4c0e487e875c960510cea0da2749bf1 (patch)
treee5233d15fea8c82a9359d742b2674214aba64c0e /test
parenta2e26b701c4017b6ea8acfd21d7c18be365b399d (diff)
downloadconnman-51671d4aa4c0e487e875c960510cea0da2749bf1.tar.gz
connman-51671d4aa4c0e487e875c960510cea0da2749bf1.tar.bz2
connman-51671d4aa4c0e487e875c960510cea0da2749bf1.zip
Fix broken start-scanning test script
Diffstat (limited to 'test')
-rwxr-xr-xtest/start-scanning19
1 files changed, 11 insertions, 8 deletions
diff --git a/test/start-scanning b/test/start-scanning
index b5933231..9b5878b0 100755
--- a/test/start-scanning
+++ b/test/start-scanning
@@ -7,19 +7,22 @@ bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
'org.moblin.connman.Manager')
-interfaces = manager.ListInterfaces()
+elements = manager.ListElements()
-for path in interfaces:
- print "[ %s ]" % (path)
+for path in elements:
+ element = dbus.Interface(bus.get_object('org.moblin.connman', path),
+ 'org.moblin.connman.Element')
+
+ properties = element.GetProperties()
- interface = dbus.Interface(bus.get_object('org.moblin.connman', path),
- 'org.moblin.connman.Interface')
+ if (properties["Type"] != "device"):
+ continue
- properties = interface.GetProperties()
+ print "[ %s ]" % (path)
- if (properties["Type"] == "80211"):
+ if (properties["Subtype"] == "wifi"):
print " Started scanning"
- interface.Scan()
+ element.Update()
else:
print " No scanning"