1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

Merge pull request #7677 from shskwmt/test-cp-acl-preserve

test/cp: Fix "No such file or directory" error in test_acl_preserve
This commit is contained in:
Daniel Hofstetter 2025-04-06 17:41:40 +02:00 committed by GitHub
commit f1f3a5d9d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4055,11 +4055,11 @@ fn test_acl_preserve() {
at.mkdir(path2);
at.touch(file);
let path = at.plus_as_string(file);
let path1 = at.plus_as_string(path1);
// calling the command directly. xattr requires some dev packages to be installed
// and it adds a complex dependency just for a test
match Command::new("setfacl")
.args(["-m", "group::rwx", path1])
.args(["-m", "group::rwx", &path1])
.status()
.map(|status| status.code())
{
@ -4074,6 +4074,7 @@ fn test_acl_preserve() {
}
}
let path = at.plus_as_string(file);
scene.ucmd().args(&["-p", &path, path2]).succeeds();
assert!(compare_xattrs(&file, &file_target));