From: Masashi Honma Date: Thu, 31 Jan 2019 08:16:12 +0000 (+0900) Subject: tests: Decode Popen output in wmediumd test sets for python3 X-Git-Tag: hostap_2_8~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d364d9ee00061c321f0fabacd1a16fe69efda01;p=thirdparty%2Fhostap.git tests: Decode Popen output in wmediumd test sets for python3 Signed-off-by: Masashi Honma --- diff --git a/tests/hwsim/test_wmediumd.py b/tests/hwsim/test_wmediumd.py index cb322cf00..3550d7b14 100644 --- a/tests/hwsim/test_wmediumd.py +++ b/tests/hwsim/test_wmediumd.py @@ -108,7 +108,7 @@ def start_wmediumd(fn, params): logs = '' while True: - line = p.stdout.readline() + line = p.stdout.readline().decode() if not line: output_wmediumd_log(p, params, logs) raise Exception('wmediumd was terminated unexpectedly') @@ -121,7 +121,7 @@ def stop_wmediumd(p, params): p.terminate() p.wait() stdoutdata, stderrdata = p.communicate() - output_wmediumd_log(p, params, stdoutdata) + output_wmediumd_log(p, params, stdoutdata.decode()) def test_wmediumd_simple(dev, apdev, params): """test a simple wmediumd configuration"""