Skip to content

Commit

Permalink
run_wml_tests: make sure the fake timed-out process has an output str…
Browse files Browse the repository at this point in the history
…eam even if it's empty
  • Loading branch information
CelticMinstrel committed Mar 14, 2021
1 parent f382eef commit adc8dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_wml_tests
Expand Up @@ -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:
Expand Down

0 comments on commit adc8dd4

Please sign in to comment.