diff options
author | Paul Stewart <pstew@google.com> | 2015-12-04 11:51:23 -0800 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-12-08 20:59:00 +0000 |
commit | 84f2591b9e12028fbf3d928770b88edf32dfaa63 (patch) | |
tree | 1c7c90cfece35bb85ef288869969e6fec5932bfc | |
parent | bd33dbbc4cfa44c3dfb5e7d648a752a8e6f1a600 (diff) | |
download | shill-84f2591b9e12028fbf3d928770b88edf32dfaa63.tar.gz |
shill: test-scripts: Fix up device properties
Fix dbus types used in the set-device-property script.
Bug:None
Change-Id: Ic79f07b4fc20d6213a8e436c4a187516a92c6305
Test:Run "set-device-property wlan0 BgscanShortInterval 30"
-rw-r--r-- | test-scripts/set-device-property | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test-scripts/set-device-property b/test-scripts/set-device-property index 204ea6e1..b5b2d438 100644 --- a/test-scripts/set-device-property +++ b/test-scripts/set-device-property @@ -10,10 +10,10 @@ if (len(sys.argv) < 4): flim = flimflam.FlimFlam() device = flim.FindElementByNameSubstring('Device', name) -if property_key in ["BgscanShortInterval", "ScanInterval" ]: - device.SetProperty(property_key, dbus.Int16(value)) +if property_key in ["BgscanShortInterval", "RoamThreshold", "ScanInterval" ]: + device.SetProperty(property_key, dbus.UInt16(value)) elif property_key in [ "BgscanSignalThreshold", ]: - device.SetProperty(property_key, int(value)) + device.SetProperty(property_key, dbus.Int32(value)) elif property_key in ["Cellular.AllowRoaming", "Powered"]: device.SetProperty(property_key, dbus.Boolean(value.lower() in ("true", "1"))) |