This commit is contained in:
Dylan Hurd
2026-02-10 19:04:09 -08:00
parent a1c99bcc13
commit 6305890f6b

View File

@@ -820,7 +820,7 @@ prefix_rule(pattern=["rm"], decision="forbidden")
fn commands_for_exec_policy_falls_back_for_empty_shell_script() {
let command = vec!["bash".to_string(), "-lc".to_string(), "".to_string()];
assert_eq!(commands_for_exec_policy(&command), (vec![command], false),);
assert_eq!(commands_for_exec_policy(&command), (vec![command], false));
}
#[test]
@@ -831,7 +831,7 @@ prefix_rule(pattern=["rm"], decision="forbidden")
" \n\t ".to_string(),
];
assert_eq!(commands_for_exec_policy(&command), (vec![command], false),);
assert_eq!(commands_for_exec_policy(&command), (vec![command], false));
}
#[tokio::test]