Skip to content

du: already passes GNU test in spirit, adjust test #7754

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

Merged

Conversation

BenWiederhake
Copy link
Collaborator

This PR adapts a GNU test to accept our phrasing of the error message.

I was looking at low-hanging fruit on the table, and dived straight into du/move-dir-while-traversing.

This GNU test exists to ward against a regression: an old GNU coreutils version used to contain a bug that triggered an assertion failure. The test's intention is to make sure that du fails not due to an assertion error (thus not producing any information, or corrupt output), but rather due to the correct reason (files vanishing). In particular, we simply emit a slightly different error message than GNU, and that's why we technically didn't pass that test.

However, since we pass the spirit of the test, I think it is appropriate to adapt the test to check for our phrasing of the error message.

While I was at it, I refreshed one of the other quilt patches, since the line numbers changed. I made sure to use GNU coreutils at git tag v9.7. I ignored two other diffs introduced by quilt refresh, since I'm not convinced they are correct.

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/misc/stdbuf (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/du/move-dir-while-traversing is no longer failing!

@BenWiederhake
Copy link
Collaborator Author

CI failure test_tail::test_follow_when_files_are_pointing_to_same_relative_file_and_file_stays_same_size seems to be a flake.

@sylvestre sylvestre merged commit 771143a into uutils:main Apr 14, 2025
144 of 147 checks passed
@sylvestre
Copy link
Contributor

excellent!

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