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>
This commit is contained in:
Jouni Malinen 2014-11-28 16:19:58 +02:00 committed by Jouni Malinen
parent e4d7b5134e
commit 2005cb87e5

View file

@ -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",