1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

id: fix error handling for id_print()

This commit is contained in:
Jan Scheer 2021-07-13 10:40:07 +02:00
parent 7abc6a665e
commit 36a192c5f6
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
2 changed files with 62 additions and 18 deletions

View file

@ -431,8 +431,11 @@ fn test_id_no_specified_user_posixly() {
// gnu/tests/id/no-context.sh
let ts = TestScenario::new(util_name!());
let result = ts.ucmd().env("POSIXLY_CORRECT", "1").succeeds();
let result = ts.ucmd().env("POSIXLY_CORRECT", "1").run();
assert!(!result.stdout_str().contains("context="));
if !is_ci() {
result.success();
}
#[cfg(all(target_os = "linux", feature = "feat_selinux"))]
{