tests: Decode Popen output in wmediumd test sets for python3
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
This commit is contained in:
parent
c45b969d6a
commit
4d364d9ee0
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ def start_wmediumd(fn, params):
|
||||||
|
|
||||||
logs = ''
|
logs = ''
|
||||||
while True:
|
while True:
|
||||||
line = p.stdout.readline()
|
line = p.stdout.readline().decode()
|
||||||
if not line:
|
if not line:
|
||||||
output_wmediumd_log(p, params, logs)
|
output_wmediumd_log(p, params, logs)
|
||||||
raise Exception('wmediumd was terminated unexpectedly')
|
raise Exception('wmediumd was terminated unexpectedly')
|
||||||
|
@ -121,7 +121,7 @@ def stop_wmediumd(p, params):
|
||||||
p.terminate()
|
p.terminate()
|
||||||
p.wait()
|
p.wait()
|
||||||
stdoutdata, stderrdata = p.communicate()
|
stdoutdata, stderrdata = p.communicate()
|
||||||
output_wmediumd_log(p, params, stdoutdata)
|
output_wmediumd_log(p, params, stdoutdata.decode())
|
||||||
|
|
||||||
def test_wmediumd_simple(dev, apdev, params):
|
def test_wmediumd_simple(dev, apdev, params):
|
||||||
"""test a simple wmediumd configuration"""
|
"""test a simple wmediumd configuration"""
|
||||||
|
|
Loading…
Reference in a new issue