Skip to content

Commit d587fcf

Browse files
committed
tools/testing: bintest output error update
1 parent ca3a552 commit d587fcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/bintest_script_runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def main(argv: Sequence[str]):
7474
line_number,
7575
line,
7676
f"Binary failed to run with return code: {e.returncode}.\n"
77-
f"The standard error was: {e.stderr!r}.\n"
78-
f"The standard output was: {e.stdout!r}.\n",
77+
f"The standard error was:\n'{e.stderr}'\n"
78+
f"The standard output was:\n'{e.stdout}'\n",
7979
) from None
8080
continue
8181
if line.startswith("CHECK:"):
@@ -92,8 +92,8 @@ def main(argv: Sequence[str]):
9292
)
9393
except bintest_matchers.MatchError as e:
9494
message = (
95-
f"command : {last_cmd_line!r}\n" #
96-
f"output : {last_run_output!r}\n" #
95+
f"command : '{last_cmd_line}'\n" #
96+
f"output :\n'{last_run_output}'\n" #
9797
f"error : {e}"
9898
)
9999
raise line_error(line_number, line, message) from None

0 commit comments

Comments
 (0)