summaryrefslogtreecommitdiff
path: root/test/enable-tethering
diff options
context:
space:
mode:
Diffstat (limited to 'test/enable-tethering')
-rwxr-xr-xtest/enable-tethering4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/enable-tethering b/test/enable-tethering
index 6bb1a9ae..cdb037fb 100755
--- a/test/enable-tethering
+++ b/test/enable-tethering
@@ -33,6 +33,8 @@ def technology_enable_tethering(path, tech_type, ssid, psk):
tech.SetProperty("Tethering", dbus.Boolean(1))
return tech_type
+ else:
+ return None
properties = manager.GetProperties()
@@ -46,6 +48,8 @@ for key in properties.keys():
tech = technology_enable_tethering(path,
sys.argv[1], "", "")
+ if tech != None:
+ break;
if tech == None:
print "Failed to enable %s tethering" % (sys.argv[1])