We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a23fa5 commit 9386aedCopy full SHA for 9386aed
1 file changed
render_machine/render_utils.py
@@ -201,8 +201,14 @@ def execute_script( # noqa: C901
201
f"The {script_type} script timed out after {script_timeout} seconds. {script_type} script output stored in: {temp_file_path}"
202
)
203
204
+ partial_output = ""
205
+ if e.stdout:
206
+ decoded = e.stdout.decode("utf-8") if isinstance(e.stdout, bytes) else e.stdout
207
+ sanitized = _sanitize_script_output(decoded)
208
+ if sanitized:
209
+ partial_output = f"\nPartial test script output:\n{sanitized}"
210
return (
211
TIMEOUT_ERROR_EXIT_CODE,
- f"{script_type} script did not finish in {script_timeout} seconds.",
212
+ f"{script_type} script did not finish in {script_timeout} seconds.{partial_output}",
213
temp_file_path,
214
0 commit comments