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

df: trim size header in tests #3582

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Conversation

cakebaker
Copy link
Contributor

Currently there is an implicit assumption in the tests that check the "size" header that there is no file system with more blocks than the width of the "size" header. For example, if the "size" header is "1K-blocks" it is assumed that there are not more than 999_999_999 blocks. Otherwise the header is prefixed with spaces and tests fail that look for a "1K-blocks" header.

This PR fixes this issue by trimming the "size" header in tests.

@tertsdiepraam tertsdiepraam linked an issue May 31, 2022 that may be closed by this pull request
@sylvestre sylvestre merged commit 8f90767 into uutils:main Jun 1, 2022
@cakebaker cakebaker deleted the ticket_3580 branch June 1, 2022 08:14
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.

some df tests are failing ( 1K-blocks vs 1K-blocks)
3 participants