mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #7898 from sylvestre/selinux-err
selinux: get closer to the GNU error msgs
This commit is contained in:
commit
7c865b29a1
8 changed files with 61 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue