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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: server/site_linux_router.py
diff --git a/server/site_linux_router.py b/server/site_linux_router.py
index f3f5e38c953ff26f259d19a3b35c4b4f9f2a4c78..4c00c6aa5bb8babcecfb612f98433b8efcc06524 100644
--- a/server/site_linux_router.py
+++ b/server/site_linux_router.py
@@ -2,6 +2,12 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import re
+
+def isLinuxRouter(router):
+ router_uname = router.run('uname').stdout
+ return re.search('Linux', router_uname)
+
class LinuxRouter(object):
"""
Linux/mac80211-style WiFi Router support for WiFiTest class.

Powered by Google App Engine
This is Rietveld 408576698