Browse Source

tests: Hide unnecessary wlantest_cli output

Unnecessary and confusing "OK" output from wlantest_cli got sent to
stdout.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Jouni Malinen 10 years ago
parent
commit
2005cb87e5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      tests/hwsim/wlantest.py

+ 2 - 1
tests/hwsim/wlantest.py

@@ -58,7 +58,8 @@ class Wlantest:
         return int(res)
 
     def clear_bss_counters(self, bssid):
-        subprocess.call([self.wlantest_cli, "clear_bss_counters", bssid]);
+        subprocess.call([self.wlantest_cli, "clear_bss_counters", bssid],
+                        stdout=open('/dev/null', 'w'));
 
     def info_sta(self, field, bssid, addr):
         res = subprocess.check_output([self.wlantest_cli, "info_sta",