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

Merge pull request #7898 from sylvestre/selinux-err

selinux: get closer to the GNU error msgs
This commit is contained in:
Daniel Hofstetter 2025-05-09 13:35:29 +02:00 committed by GitHub
commit 7c865b29a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 61 additions and 25 deletions

View file

@ -6315,7 +6315,7 @@ fn test_cp_selinux_invalid() {
.arg(TEST_HELLO_WORLD_SOURCE)
.arg(TEST_HELLO_WORLD_DEST)
.fails()
.stderr_contains("Failed to");
.stderr_contains("failed to");
if at.file_exists(TEST_HELLO_WORLD_DEST) {
at.remove(TEST_HELLO_WORLD_DEST);
}

View file

@ -411,7 +411,7 @@ fn test_selinux_invalid() {
.arg(at.plus_as_string(dest))
.fails()
.no_stdout()
.stderr_contains("Failed to set default file creation context to 'testtest':");
.stderr_contains("failed to set default file creation context to 'testtest':");
// invalid context, so, no directory
assert!(!at.dir_exists(dest));
}