summaryrefslogtreecommitdiff
path: root/test/connect-network
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-03-26 01:22:44 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-03-26 01:22:44 -0700
commit71dc77ea6ceaf3d486a2d16305243687f6cdac24 (patch)
tree8dbb38a1a74b5eef59d23118a29bca35281eb14a /test/connect-network
parent001e24d0172afe9b8601256795b2728d4a7278fb (diff)
downloadconnman-71dc77ea6ceaf3d486a2d16305243687f6cdac24.tar.gz
connman-71dc77ea6ceaf3d486a2d16305243687f6cdac24.tar.bz2
connman-71dc77ea6ceaf3d486a2d16305243687f6cdac24.zip
Fix network selection test scripts
Diffstat (limited to 'test/connect-network')
-rwxr-xr-xtest/connect-network5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/connect-network b/test/connect-network
index 8f4f26bf..37cf60bd 100755
--- a/test/connect-network
+++ b/test/connect-network
@@ -22,7 +22,7 @@ for path in properties["Devices"]:
if properties["Type"] not in ["wifi", "wimax",
"bluetooth", "cellular"]:
- continue;
+ continue
for path in properties["Networks"]:
network = dbus.Interface(bus.get_object("org.moblin.connman", path),
@@ -32,6 +32,9 @@ for path in properties["Devices"]:
dev = path[path.rfind("/") + 1:]
+ if "Name" not in properties.keys():
+ continue
+
if dev == sys.argv[1] or properties["Name"] == sys.argv[1]:
print "Connecting %s" % (path)
network.Connect()