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

Unified Diff: server/site_linux_router.py

Issue 2751007: Add an "ssid_suffix" parameter to both "connect" and "config" rules to modify SSID per-subtest (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Fixup to default ssid for connect command -- use router configured ssid; add bsd router Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/site_bsd_router.py ('k') | server/site_wifitest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/site_linux_router.py
diff --git a/server/site_linux_router.py b/server/site_linux_router.py
index 8825e28d270864a46a1eea9062297ba0c7086680..9636c9543e2d230bd4daad7c32920181b72fd2ee 100644
--- a/server/site_linux_router.py
+++ b/server/site_linux_router.py
@@ -55,6 +55,7 @@ class LinuxRouter(object):
# hostapd configuration persists throughout the test, subsequent
# 'config' commands only modify it.
+ self.defssid = defssid
self.hostapd = {
'configured': False,
'file': "/tmp/hostapd-test.conf",
@@ -143,6 +144,8 @@ class LinuxRouter(object):
for k, v in params.iteritems():
if k == 'ssid':
conf['ssid'] = v
+ elif k == 'ssid_suffix':
+ conf['ssid'] = self.defssid + v
elif k == 'channel':
freq = int(v)
@@ -293,3 +296,7 @@ class LinuxRouter(object):
ignore_status=True)
self.hostapd['configured'] = False
+
+
+ def get_ssid(self):
+ return self.hostapd['conf']['ssid']
« no previous file with comments | « server/site_bsd_router.py ('k') | server/site_wifitest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698