X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=test%2Fselect-network;h=376d9d2b4f3d2c3699bf46cceda9e041eacdc1c5;hb=35687e51f6bb14417777def599ba4f6cb65876de;hp=e7d1a635976d4069e73c151f2cc7ae76e035314c;hpb=ac83f1cd2872ecc88b4276eeda02fce2ebec553c;p=connman diff --git a/test/select-network b/test/select-network index e7d1a63..376d9d2 100755 --- a/test/select-network +++ b/test/select-network @@ -21,7 +21,7 @@ for path in properties["Devices"]: properties = device.GetProperties() if (properties["Type"] != "wifi" and properties["Type"] != "wimax"): - continue; + continue print "[ %s ]" % (path) @@ -31,6 +31,9 @@ for path in properties["Devices"]: properties = network.GetProperties() + if "Name" not in properties.keys(): + continue + if (properties["Connected"] == dbus.Boolean(1)): continue