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

Side by Side Diff: server/site_linux_router.py

Issue 1512032: WiFi test cleanups (Closed)
Patch Set: Created 10 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
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 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 re
6
7 def isLinuxRouter(router):
8 router_uname = router.run('uname').stdout
9 return re.search('Linux', router_uname)
10
5 class LinuxRouter(object): 11 class LinuxRouter(object):
6 """ 12 """
7 Linux/mac80211-style WiFi Router support for WiFiTest class. 13 Linux/mac80211-style WiFi Router support for WiFiTest class.
8 14
9 This class implements test methods/steps that communicate with a 15 This class implements test methods/steps that communicate with a
10 router implemented with Linux/mac80211. The router must 16 router implemented with Linux/mac80211. The router must
11 be pre-configured to enable ssh access and have a mac80211-based 17 be pre-configured to enable ssh access and have a mac80211-based
12 wireless device. We also assume hostapd 0.7.x and iw are present 18 wireless device. We also assume hostapd 0.7.x and iw are present
13 and any necessary modules are pre-loaded. 19 and any necessary modules are pre-loaded.
14 """ 20 """
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 self.router.run("rm -f %s" % self.hostapd_conf) 182 self.router.run("rm -f %s" % self.hostapd_conf)
177 self.hostapd_conf = None 183 self.hostapd_conf = None
178 184
179 185
180 def client_check_config(self, params): 186 def client_check_config(self, params):
181 """ 187 """
182 Check network configuration on client to verify parameters 188 Check network configuration on client to verify parameters
183 have been negotiated during the connection to the router. 189 have been negotiated during the connection to the router.
184 """ 190 """
185 # XXX fill in 191 # XXX fill in
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698