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

cp: --preserve should keep xattr #5834

Merged
merged 4 commits into from Jan 15, 2024
Merged

cp: --preserve should keep xattr #5834

merged 4 commits into from Jan 15, 2024

Conversation

sylvestre
Copy link
Sponsor Contributor

Should help with tests/cp/acl.sh

Copy link

GNU testsuite comparison:

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

Copy link

GNU testsuite comparison:

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

@@ -3701,3 +3703,57 @@ fn test_cp_no_such() {
.fails()
.stderr_is("cp: 'no-such/' is not a directory\n");
}

#[cfg(all(unix, not(target_os = "macos")))]
fn compare_xattrs<P: AsRef<Path>>(path1: P, path2: P) -> bool {
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

i will update this code to use the one in
#5835

after this one is merged

@sylvestre sylvestre force-pushed the cp-acl branch 2 times, most recently from d6854e9 to 8a31fea Compare January 14, 2024 09:40
Copy link

GNU testsuite comparison:

Congrats! The gnu test tests/cp/acl is no longer failing!

Should help with tests/cp/acl.sh
Copy link

GNU testsuite comparison:

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

@cakebaker
Copy link
Contributor

Congrats! The gnu test tests/cp/acl is no longer failing!

Kudos :)

tests/by-util/test_cp.rs Outdated Show resolved Hide resolved
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
tests/by-util/test_cp.rs Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it the expected behavior that the test doesn't fail if the changes in cp.rs are not applied?

Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

yeah, i am planning to fix mac and the tests once they land :)

tests/by-util/test_cp.rs Outdated Show resolved Hide resolved
sylvestre and others added 2 commits January 14, 2024 17:27
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Copy link

GNU testsuite comparison:

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

@cakebaker cakebaker merged commit fff8399 into uutils:main Jan 15, 2024
60 of 61 checks passed
sylvestre added a commit to sylvestre/coreutils that referenced this pull request Jan 19, 2024
* cp: --preserve should keep xattr

Should help with tests/cp/acl.sh

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update tests/by-util/test_cp.rs

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
@sylvestre sylvestre deleted the cp-acl branch March 30, 2024 22:20
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

2 participants