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

Unified Diff: server/site_tests/network_WiFiSecMat/network_WiFiSecMat.py

Issue 3431008: Consoldidate wifi test suite boilerplate into site_wifitest.py (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Sneaky merge line fixed. Created 10 years, 3 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_tests/network_WiFiSecMat/control ('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_tests/network_WiFiSecMat/network_WiFiSecMat.py
diff --git a/server/site_tests/network_WiFiSecMat/network_WiFiSecMat.py b/server/site_tests/network_WiFiSecMat/network_WiFiSecMat.py
index e4cb12b4b5b7b3bbd508b892d27852bc7767f454..ab915134d6f89117a1df1c64efd7b9c5976b216c 100644
--- a/server/site_tests/network_WiFiSecMat/network_WiFiSecMat.py
+++ b/server/site_tests/network_WiFiSecMat/network_WiFiSecMat.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-"""WiFiMatFunc is a suite of 3-machine tests to validate basic WiFi functionality.
+"""WiFiSecMat is a suite of 3-machine tests to validate basic WiFi functionality.
One client, one server, and one programmable WiFi AP/Router are required
(either off-the-shelf with a network-accesible CLI or a Linux/BSD system
with a WiFi card that supports HostAP functionality).
@@ -15,42 +15,7 @@ router - the IP address of the WiFi AP/Router and the names of the
wifi and wired devices to configure
"""
+from autotest_lib.server import site_wifitest
-from autotest_lib.client.bin import utils
-from autotest_lib.client.common_lib import error
-from autotest_lib.server import autotest, site_wifitest, test
-
-import logging
-
-
-class network_WiFiSecMat(test.test):
- version = 1
-
- def expect_failure(self, name, reason):
- if reason is None:
- reason = "no reason given"
- logging.info("%s: ignore failure (%s)", name, reason)
-
-
- # The testcase config, setup, etc are done out side the individual
- # test loop, in the control file.
- def run_once(self, testcase, config):
- name = testcase['name']
- try:
- if 'skip_test' in testcase:
- logging.info("%s: SKIP: %s", name, testcase['skip_test'])
- else:
- wt = site_wifitest.WiFiTest(name, testcase['steps'], config)
- wt.run()
- wt.write_keyvals(self)
- except error.TestFail:
- if 'expect_failure' in testcase:
- self.expect_failure(name, testcase['expect_failure'])
- else:
- raise
- except Exception, e:
- if 'expect_failure' in testcase:
- self.expect_failure(name, testcase['expect_failure'])
- else:
- raise error.TestFail(e)
-
+class network_WiFiSecMat(site_wifitest.test):
+ pass
« no previous file with comments | « server/site_tests/network_WiFiSecMat/control ('k') | server/site_wifitest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698