summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-06 00:00:11 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-06 00:00:11 +0100
commitdc904e17f98346d1d233dc090c3195c33ff5f71d (patch)
tree3009e72077265fb505b2754b679262fb77f6723d /test
parentaa7b81c7494f844bb4f08647868ae3bd0ce038b4 (diff)
downloadconnman-dc904e17f98346d1d233dc090c3195c33ff5f71d.tar.gz
connman-dc904e17f98346d1d233dc090c3195c33ff5f71d.tar.bz2
connman-dc904e17f98346d1d233dc090c3195c33ff5f71d.zip
Don't check non wireless devices
Diffstat (limited to 'test')
-rwxr-xr-xtest/disable-network3
-rwxr-xr-xtest/list-networks3
-rwxr-xr-xtest/select-network3
-rwxr-xr-xtest/set-passphrase3
4 files changed, 12 insertions, 0 deletions
diff --git a/test/disable-network b/test/disable-network
index beea2f10..0f261549 100755
--- a/test/disable-network
+++ b/test/disable-network
@@ -15,6 +15,9 @@ for path in properties["Devices"]:
properties = device.GetProperties()
+ if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ continue;
+
print "[ %s ]" % (path)
for path in properties["Networks"]:
diff --git a/test/list-networks b/test/list-networks
index 94e111c4..3b29a8e4 100755
--- a/test/list-networks
+++ b/test/list-networks
@@ -15,6 +15,9 @@ for path in properties["Devices"]:
properties = device.GetProperties()
+ if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ continue;
+
print "[ %s ]" % (path)
for path in properties["Networks"]:
diff --git a/test/select-network b/test/select-network
index e7491e8a..b5a0259f 100755
--- a/test/select-network
+++ b/test/select-network
@@ -20,6 +20,9 @@ for path in properties["Devices"]:
properties = device.GetProperties()
+ if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ continue;
+
print "[ %s ]" % (path)
for path in properties["Networks"]:
diff --git a/test/set-passphrase b/test/set-passphrase
index db39554f..1c0d0f18 100755
--- a/test/set-passphrase
+++ b/test/set-passphrase
@@ -20,6 +20,9 @@ for path in properties["Devices"]:
properties = device.GetProperties()
+ if (properties["Type"] != "wifi" and properties["Type"] != "wimax"):
+ continue;
+
for path in properties["Networks"]:
network = dbus.Interface(bus.get_object("org.moblin.connman", path),
"org.moblin.connman.Network")