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:
parent
f3c4d2db1f
commit
f0979c4ac9
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ def check_tls_tod(dev):
|
|||
|
||||
def vht_supported():
|
||||
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:
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue