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

stages(mkfs.ext4): add basic unit test #1502

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Dec 13, 2023

This was actually meant to be the starting point of a branch that adds options to control the new orphan_file feature of ext4 so that we can fix osbuild/bootc-image-builder#20 by selectively enable/disable this feature based on the distro.

However we decided to go into a different direction here but given that the test is already written and useful in itself I decided to open it.

@mvo5 mvo5 added the 🍼 Simple Simple and quick to review label Dec 13, 2023
@mvo5 mvo5 requested a review from supakeen December 13, 2023 14:45
assert expected_err in err_msgs[0]


@pytest.mark.skipif(not has_executable("mkfs.ext4"), reason="need mkfs.ext4")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick alert :) We should probably standardize on the wording for missing executables in these tests. Right now we have 4 different ways to say it. I'm partial to the form I used no mkfs.ext4 executable of course, but I'm more a fan of consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! I like this attention to detail and agree. I have no strong opinion here, I will follow your lead here and use no {name} executable - at least I will try to remember, please call me out if I forget :)

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.

Looks good.

@ondrejbudai ondrejbudai merged commit b830c80 into osbuild:main Dec 15, 2023
71 checks passed
@mvo5 mvo5 deleted the ext4-test branch December 21, 2023 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍼 Simple Simple and quick to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odc fails on Fedora 38 and Centos Stream 9 images
3 participants