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

test: tweak test_osbuild_mount_failure_msg() for tmt/fc40 #1781

Merged
merged 1 commit into from
May 23, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented May 13, 2024

The test_osbuild_mount_failure_msg currently fails on fc40 when run in tmt, see:
https://artifacts.dev.testing-farm.io/c6588a82-a2cb-46df-8ca8-85dd809465f2/

This is because the failure output is slightly different between a container and a VM/real-machine. The test ensures that we capture the output of mount and present to the user (for easier debugging). So this commit updates this test once more for the error string (that part of the error comes directly from the kernels fsconfig).

If we need another update of the string we should reconsider this test and e.g. just use testutil.mock_command() for this. But for now it's easier to just add this one more failure string.

elkoniu
elkoniu previously approved these changes May 13, 2024
Copy link
Contributor

@elkoniu elkoniu left a comment

Choose a reason for hiding this comment

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

LGTM

bcl
bcl previously approved these changes May 13, 2024
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Ack!

@mvo5 mvo5 enabled auto-merge (rebase) May 14, 2024 07:33
@mvo5 mvo5 dismissed stale reviews from bcl and elkoniu via 68a2feb May 16, 2024 13:23
@mvo5 mvo5 force-pushed the fix-mount-test-tmt-fc40 branch from 1b5975e to 68a2feb Compare May 16, 2024 13:23
@mvo5 mvo5 requested review from bcl and elkoniu May 16, 2024 13:23
@mvo5
Copy link
Contributor Author

mvo5 commented May 16, 2024

Sorry, had to re-push to fix a trivial linter failure (line too long)

Copy link
Contributor

@elkoniu elkoniu left a comment

Choose a reason for hiding this comment

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

LGTM

The `test_osbuild_mount_failure_msg` currently fails on fc40 when
run in tmt, see:
https://artifacts.dev.testing-farm.io/c6588a82-a2cb-46df-8ca8-85dd809465f2/

This is because the failure output is slightly different between
a container and a VM/real-machine. The test ensures that we capture
the output of mount and present to the user (for easier debugging).
So this commit updates this test once more for the error string
(that part of the error comes directly from the kernels fsconfig).

If we need another update of the string we should reconsider this
test and e.g. just use `testutil.mock_command()` for this. But
for now it's easier to just add this one more failure string.
@mvo5 mvo5 merged commit ad13333 into osbuild:main May 23, 2024
44 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.

None yet

5 participants