tests: Fix python3 processing of Popen output reading

Need to decode cmd.stdout.read() output before using it as a string.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
Jouni Malinen 2023-02-22 21:21:54 +02:00 committed by Jouni Malinen
parent f3c4d2db1f
commit f0979c4ac9

View file

@ -146,7 +146,7 @@ def check_tls_tod(dev):
def vht_supported(): def vht_supported():
cmd = subprocess.Popen(["iw", "reg", "get"], stdout=subprocess.PIPE) cmd = subprocess.Popen(["iw", "reg", "get"], stdout=subprocess.PIPE)
reg = cmd.stdout.read() reg = cmd.stdout.read().decode()
if "@ 80)" in reg or "@ 160)" in reg: if "@ 80)" in reg or "@ 160)" in reg:
return True return True
return False return False