run_tests.py: fix for python3

The decode method is only valid for bytes in python3

Signed-off-by: Amirreza Zarrabi <amrzar@gmail.com>
This commit is contained in:
Amirreza Zarrabi 2020-04-20 16:08:18 +10:00
parent a7ed68e75d
commit 3bb212bb75
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ def run_test(test, status_queue, kill_switch,
timer.cancel()
if output is None:
output = ""
output = b''
output = output.decode(encoding='utf8', errors='replace')
if test_status[0] in [STUCK, TIMEOUT, CPU_TIMEOUT]:
output = output + extra_timeout_output(test.name)