Skip to content

Commit

Permalink
Closes #680
Browse files Browse the repository at this point in the history
  • Loading branch information
squell committed Feb 11, 2025
1 parent cb51622 commit 2b0d8a1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test-framework/sudo-compliance-tests/src/sudo/flag_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ fn root_can_become_another_user_by_name() -> Result<()> {
Ok(())
}

#[ignore = "gh680"]
#[test]
fn uppercase_u_flag_fails() -> Result<()> {
let env = Env(SUDOERS_ROOT_ALL_NOPASSWD).user(USERNAME).build()?;
Expand All @@ -52,7 +51,11 @@ fn uppercase_u_flag_fails() -> Result<()> {
let stderr = output.stderr();
assert_contains!(
stderr,
"sudo: the -U option may only be used with the -l option"
if sudo_test::is_original_sudo() {
"sudo: the -U option may only be used with the -l option"
} else {
"conflicts with --other-user"
}
);

Ok(())
Expand Down

0 comments on commit 2b0d8a1

Please sign in to comment.