Skip to content

test-run: show luatest stderr on startup failure#460

Merged
sergepetrenko merged 1 commit into
tarantool:masterfrom
Godrik0:Godrik0/test-run-capture-stderr
May 26, 2026
Merged

test-run: show luatest stderr on startup failure#460
sergepetrenko merged 1 commit into
tarantool:masterfrom
Godrik0:Godrik0/test-run-capture-stderr

Conversation

@Godrik0
Copy link
Copy Markdown
Contributor

@Godrik0 Godrik0 commented May 21, 2026

If luatest fails to start (e.g., due to a Lua error in one of the loaded modules), test-run only shows the exit code without the actual error message. Capture stderr from the subprocess and include it in the error message so the cause of the failure is visible right away.

This may result in verbose error output in some cases. Let me know if the original behavior of discarding stderr was intentional - I found it very inconvenient to debug without seeing the actual error message.

If luatest fails to start (e.g., due to a Lua error in one of the
loaded modules), test-run only shows the exit code without the actual
error message. Capture stderr from the subprocess and include it in
the error message so the cause of the failure is visible right away.
@Godrik0 Godrik0 requested a review from ImeevMA May 21, 2026 15:35
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 62.529% (-0.04%) from 62.569% — Godrik0:Godrik0/test-run-capture-stderr into tarantool:master

@Totktonada
Copy link
Copy Markdown
Contributor

This may result in verbose error output in some cases. Let me know if the original behavior of discarding stderr was intentional - I found it very inconvenient to debug without seeing the actual error message.

Nope, this is not intentional.

Nice to see it fixed.

Copy link
Copy Markdown
Contributor

@ImeevMA ImeevMA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! It seems very useful!

@sergepetrenko sergepetrenko merged commit 6a0b1c3 into tarantool:master May 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants