summaryrefslogtreecommitdiff
path: root/test/enable-device
diff options
context:
space:
mode:
Diffstat (limited to 'test/enable-device')
-rwxr-xr-xtest/enable-device5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/enable-device b/test/enable-device
index b5b1a9cc..64514416 100755
--- a/test/enable-device
+++ b/test/enable-device
@@ -20,8 +20,11 @@ for path in properties["Devices"]:
properties = device.GetProperties()
+ if "Interface" not in properties.keys():
+ continue
+
if properties["Interface"] != sys.argv[1]:
- continue;
+ continue
print "Enabling device %s" % (path)