feat: CODEX_CI (#9366)
This commit is contained in:
parent
c576756c81
commit
7fc49697dd
1 changed files with 3 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ use crate::unified_exec::process::OutputHandles;
|
|||
use crate::unified_exec::process::UnifiedExecProcess;
|
||||
use crate::unified_exec::resolve_max_tokens;
|
||||
|
||||
const UNIFIED_EXEC_ENV: [(&str, &str); 9] = [
|
||||
const UNIFIED_EXEC_ENV: [(&str, &str); 10] = [
|
||||
("NO_COLOR", "1"),
|
||||
("TERM", "dumb"),
|
||||
("LANG", "C.UTF-8"),
|
||||
|
|
@ -57,6 +57,7 @@ const UNIFIED_EXEC_ENV: [(&str, &str); 9] = [
|
|||
("PAGER", "cat"),
|
||||
("GIT_PAGER", "cat"),
|
||||
("GH_PAGER", "cat"),
|
||||
("CODEX_CI", "1"),
|
||||
];
|
||||
|
||||
fn apply_unified_exec_env(mut env: HashMap<String, String>) -> HashMap<String, String> {
|
||||
|
|
@ -688,6 +689,7 @@ mod tests {
|
|||
("PAGER".to_string(), "cat".to_string()),
|
||||
("GIT_PAGER".to_string(), "cat".to_string()),
|
||||
("GH_PAGER".to_string(), "cat".to_string()),
|
||||
("CODEX_CI".to_string(), "1".to_string()),
|
||||
]);
|
||||
|
||||
assert_eq!(env, expected);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue