Skip to content

Improve "stat" compatibility #6933

Merged
cakebaker merged 8 commits intouutils:mainfrom
sylvestre:stats
Dec 10, 2024
Merged

Improve "stat" compatibility #6933
cakebaker merged 8 commits intouutils:mainfrom
sylvestre:stats

Conversation

@sylvestre
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2024

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/stat/stat-fmt is no longer failing!

1 similar comment
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2024

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/stat/stat-fmt is no longer failing!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2024

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!

@sylvestre
Copy link
Copy Markdown
Contributor Author

Regressed this test. I will have a look later.

TRY 3 STDERR:        coreutils::tests test_stat::test_printf ---
thread 'test_stat::test_printf' panicked at tests/by-util/test_stat.rs:250:38:
assertion failed: `(left == right)`

Diff < left / right > :
<123?
"\��ev                   /�wZJ
>123?
"\���                   /�wZJ
 

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2024

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)
Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 7, 2024

GNU testsuite comparison:

Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 8, 2024

GNU testsuite comparison:

Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 8, 2024

GNU testsuite comparison:

Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

Comment on lines +333 to +334
display_name: &str,
file: &OsString,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is display_name necessary? It looks to me like you could get it from file with file.to_string_lossy().

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it seems legit but it isn't:
https://github.com/uutils/coreutils/blob/main/src/uu/stat/src/stat.rs#L639-L640
as you can see here, we are keeping the original name and changing :)

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 9, 2024

GNU testsuite comparison:

Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!
Skipping an intermittent issue tests/timeout/timeout (passes in this run but fails in the 'main' branch)

@cakebaker cakebaker merged commit c60203d into uutils:main Dec 10, 2024
@cakebaker
Copy link
Copy Markdown
Contributor

Congrats! The gnu test tests/stat/stat-fmt is no longer failing!
Congrats! The gnu test tests/stat/stat-printf is no longer failing!

Cool, two tests fixed with one PR, good job :)

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