dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Fix bug for stdout/stderrr on timeouts #478

Closed niknetniko closed 7 months ago

niknetniko commented 7 months ago

When a timeout occurs, we catch the exception and attempt to recover existing stdout/stderr. However, the docs specify that these are bytes, even if text=True.

We must therefore properly decode these bytes instead of just passing them to str.

Fixes #476.