Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testinfra/modules/blockdevice: Don't fail on stderr #745

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

BenoitKnecht
Copy link
Contributor

The blockdevice module raises a RuntimeError if blockdev returns with a non-zero exit code, or if stderr is not empty.

But the latter can happen even when there's no failure at all, for instance if sshd has a banner message configured (which gets output to stderr whenever someone connects to the host).

The `blockdevice` module raises a `RuntimeError` if `blockdev` returns with a
non-zero exit code, or if stderr is not empty.

But the latter can happen even when there's no failure at all, for instance if
`sshd` has a banner message configured (which gets output to stderr whenever
someone connects to the host).

Signed-off-by: Benoît Knecht <[email protected]>
@philpep philpep self-assigned this Nov 13, 2023
@philpep philpep self-requested a review November 13, 2023 16:15
@philpep philpep merged commit 1cb19cc into pytest-dev:main Nov 13, 2023
7 checks passed
@philpep
Copy link
Contributor

philpep commented Nov 13, 2023

Merged, thanks!

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.

2 participants