Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(814)

Side by Side Diff: server/site_wifitest.py

Issue 6805027: Temporarily change bgscan threshold in MultiSwitchBack (Closed) Base URL: http://git.chromium.org/git/autotest.git@master
Patch Set: More explicit comment Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « server/site_tests/network_WiFiRoaming/003SSIDMultiSwitchBack ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import common, datetime, fnmatch, logging, os, re, string, threading, time 5 import common, datetime, fnmatch, logging, os, re, string, threading, time
6 6
7 from autotest_lib.server import autotest, hosts, subcommand 7 from autotest_lib.server import autotest, hosts, subcommand
8 from autotest_lib.server import site_bsd_router 8 from autotest_lib.server import site_bsd_router
9 from autotest_lib.server import site_linux_router 9 from autotest_lib.server import site_linux_router
10 from autotest_lib.server import site_linux_server 10 from autotest_lib.server import site_linux_server
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 (self.client_cmd_flimflam_lib, opts)) 1179 (self.client_cmd_flimflam_lib, opts))
1180 1180
1181 1181
1182 def bgscan_disable(self, params): 1182 def bgscan_disable(self, params):
1183 """ Disable wpa_supplicant bgscan """ 1183 """ Disable wpa_supplicant bgscan """
1184 self.bgscan_set({'method' : 'none'}) 1184 self.bgscan_set({'method' : 'none'})
1185 1185
1186 1186
1187 def bgscan_enable(self, params): 1187 def bgscan_enable(self, params):
1188 """ Enable wpa_supplicant bgscan """ 1188 """ Enable wpa_supplicant bgscan """
1189 self.bgscan_set({'method' : 'bgscan'}) 1189 self.bgscan_set({'method' : 'default'})
1190 1190
1191 1191
1192 def time_sync(self, params): 1192 def time_sync(self, params):
1193 for name in params or ['client', 'server', 'router']: 1193 for name in params or ['client', 'server', 'router']:
1194 system = { 'client': self.client, 1194 system = { 'client': self.client,
1195 'server': self.server, 1195 'server': self.server,
1196 'router': self.router }.get(name) 1196 'router': self.router }.get(name)
1197 if not system: 1197 if not system:
1198 raise error.TestFail('time_sync: Must specify ' 1198 raise error.TestFail('time_sync: Must specify '
1199 'router, client or server') 1199 'router, client or server')
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 except error.TestFail: 1439 except error.TestFail:
1440 if 'expect_failure' in testcase: 1440 if 'expect_failure' in testcase:
1441 self.expect_failure(name, testcase['expect_failure']) 1441 self.expect_failure(name, testcase['expect_failure'])
1442 else: 1442 else:
1443 raise 1443 raise
1444 except Exception, e: 1444 except Exception, e:
1445 if 'expect_failure' in testcase: 1445 if 'expect_failure' in testcase:
1446 self.expect_failure(name, testcase['expect_failure']) 1446 self.expect_failure(name, testcase['expect_failure'])
1447 else: 1447 else:
1448 raise 1448 raise
OLDNEW
« no previous file with comments | « server/site_tests/network_WiFiRoaming/003SSIDMultiSwitchBack ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698