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

Unified Diff: client/site_tests/network_WiFiCaps/network_WiFiCaps.py

Issue 6894013: Rewrite pipe (remove one stage) and remove reference to wlan0 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/network_WiFiCaps/network_WiFiCaps.py
diff --git a/client/site_tests/network_WiFiCaps/network_WiFiCaps.py b/client/site_tests/network_WiFiCaps/network_WiFiCaps.py
index b315c53c8a0ca83cfbf8c04c631c8bc1694b629b..0d3a9900dd47084b31114ae0b72714a786017f9a 100644
--- a/client/site_tests/network_WiFiCaps/network_WiFiCaps.py
+++ b/client/site_tests/network_WiFiCaps/network_WiFiCaps.py
@@ -38,10 +38,9 @@ class network_WiFiCaps(test.test):
return self.__parse_iwcap(iwcap.stdout)
def run_once(self):
- phy = utils.system_output("iw list | grep Wiphy |"
- " awk {'NR==1; print $2'}")
+ phy = utils.system_output("iw list | awk '/^WiPhy/ {print $2}'")
if not phy or 'phy' not in phy:
- raise error.TestFail('Physical interface for wlan0 not found')
+ raise error.TestFail('WiFi Physical interface not found')
requiredCaps = {
'sta' : 'true', # station mode
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698