Skip to content
Snippets Groups Projects
Commit 1563c916 authored by Zifei Tong's avatar Zifei Tong Committed by Pekka Enberg
Browse files

scripts: make 'scripts/test.py' support Python3


Python3 no longer allow implicitly conversion form bytes to string,
add explicit decode() to convert input bytes.

Tested with both Python2 and Python3.

Reviewed-by: default avatarNadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: default avatarZifei Tong <zifeitong@gmail.com>
Signed-off-by: default avatarPekka Enberg <penberg@cloudius-systems.com>
parent 7c8d7415
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python2
#!/usr/bin/env python
import subprocess
import argparse
import glob
......@@ -72,7 +72,7 @@ def run_test(test):
out = ""
line = ""
while True:
ch = process.stdout.read(1)
ch = process.stdout.read(1).decode()
if ch == '' and process.poll() != None:
break
out += ch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment