run_wml_tests: make sure the fake timed-out process has an output stream even if it's empty

This commit is contained in:
Celtic Minstrel 2021-03-06 19:29:22 -05:00 committed by Celtic Minstrel
parent f382eefc33
commit adc8dd492c

View file

@ -180,7 +180,7 @@ class WesnothRunner:
res = run_with_rerun_for_sdl_video(args, timeout)
except subprocess.TimeoutExpired as t:
print("Timed out (killed by Python timeout implementation)")
res = subprocess.CompletedProcess(args, UnitTestResult.TIMEOUT.value, t.output)
res = subprocess.CompletedProcess(args, UnitTestResult.TIMEOUT.value, t.output or b'')
if self.verbose > 0:
print(res.stdout.decode('utf-8'))
if self.verbose > 1: