diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-02-21 21:26:19 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-02-21 21:26:19 +0100 |
commit | 217cb1c2c1b369d2c9d0939516e240f27cbe75fa (patch) | |
tree | 39c3be7c03864fdde3f3d32ed242785c92991851 /test/disable-tethering | |
parent | b5c187743d140e18babafa7e51c60ceefc59f137 (diff) | |
download | connman-217cb1c2c1b369d2c9d0939516e240f27cbe75fa.tar.gz connman-217cb1c2c1b369d2c9d0939516e240f27cbe75fa.tar.bz2 connman-217cb1c2c1b369d2c9d0939516e240f27cbe75fa.zip |
test: Fix tethering scripts
Check for the enabling/disabling python return values.
Diffstat (limited to 'test/disable-tethering')
-rwxr-xr-x | test/disable-tethering | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/disable-tethering b/test/disable-tethering index e275b2b6..87435232 100755 --- a/test/disable-tethering +++ b/test/disable-tethering @@ -24,6 +24,8 @@ def technology_disable_tethering(path, tech_type): tech.SetProperty("Tethering", dbus.Boolean(0)) return tech_type + else: + return None properties = manager.GetProperties() @@ -31,6 +33,8 @@ for key in properties.keys(): if key in ["Technologies"]: for path in properties[key]: tech = technology_disable_tethering(path, sys.argv[1]) + if tech != None: + break; if tech == None: print "Failed to disable %s tethering" % (sys.argv[1]) |