diff --git a/test-framework/sudo-compliance-tests/src/sudo/flag_shell.rs b/test-framework/sudo-compliance-tests/src/sudo/flag_shell.rs index 1ceea9b51..ff61e2eda 100644 --- a/test-framework/sudo-compliance-tests/src/sudo/flag_shell.rs +++ b/test-framework/sudo-compliance-tests/src/sudo/flag_shell.rs @@ -67,6 +67,22 @@ echo $0"; Ok(()) } +#[ignore = "gh962"] +#[test] +fn shell_is_canonicalized() -> Result<()> { + let shell_path = "/bin/bash"; + let env = Env("ALL ALL=(ALL:ALL) NOPASSWD: /usr/bin/bash") + .build()?; + + Command::new("env") + .arg(format!("SHELL={shell_path}")) + .args(["sudo", "-s", "true"]) + .output(&env)? + .stdout()?; + + Ok(()) +} + #[test] fn argument_is_invoked_with_dash_c_flag() -> Result<()> { let shell_path = "/root/my-shell";