We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fba5c commit a93284bCopy full SHA for a93284b
tests/mock/clitools.rs
@@ -92,6 +92,10 @@ pub fn setup(s: Scenario, f: &dyn Fn(&mut Config)) {
92
env::remove_var("RUSTUP_TOOLCHAIN");
93
env::remove_var("SHELL");
94
env::remove_var("ZDOTDIR");
95
+ // clap does it's own terminal colour probing, and that isn't
96
+ // trait-controllable, but it does honour the terminal. To avoid testing
97
+ // claps code, lie about whatever terminal this process was started under.
98
+ env::set_var("TERM", "dumb");
99
100
match env::var("RUSTUP_BACKTRACE") {
101
Ok(val) => env::set_var("RUST_BACKTRACE", val),
0 commit comments