]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Decode Popen output in wmediumd test sets for python3
authorMasashi Honma <masashi.honma@gmail.com>
Thu, 31 Jan 2019 08:16:12 +0000 (17:16 +0900)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 10:26:34 +0000 (12:26 +0200)
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
tests/hwsim/test_wmediumd.py

index cb322cf00b1abacd03f7e905a62e3f6163bf65d4..3550d7b146f0b513d9f8a7a9de354d0c79997e8e 100644 (file)
@@ -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"""