Skip to content

Commit 04eeb8c

Browse files
committed
[bfops/parallel-smoketests]: sanitize cargo env
1 parent 73548c1 commit 04eeb8c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tools/ci/src/main.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,13 @@ fn run_smoketests_batch(server_mode: StartServer, args: &[String], python: &str)
287287
fn main() -> Result<()> {
288288
let cli = Cli::parse();
289289

290+
// Remove all Cargo-provided env vars from the subcommand
291+
for (key, _) in std::env::vars() {
292+
if key.starts_with("CARGO_") && key != "CARGO_TARGET_DIR" {
293+
std::env::remove_var(key);
294+
}
295+
}
296+
290297
match cli.cmd {
291298
Some(CiCmd::Test) => {
292299
bash!("cargo test --all -- --skip unreal")?;

0 commit comments

Comments
 (0)