From b447073deb19e8dae80a387922d713417fba3e12 Mon Sep 17 00:00:00 2001 From: junhsss Date: Mon, 19 Oct 2026 22:52:54 +0900 Subject: [PATCH] test: disable telemetry when tests run the binary --- .github/workflows/ci.yml | 1 + tests/cli_blackbox.rs | 2 ++ tests/dev_command.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e70abb..668783e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: env: CARGO_TERM_COLOR: always + STEEL_TELEMETRY_DISABLED: "1" jobs: check: diff --git a/tests/cli_blackbox.rs b/tests/cli_blackbox.rs index 8abfbcf..437302e 100644 --- a/tests/cli_blackbox.rs +++ b/tests/cli_blackbox.rs @@ -18,6 +18,7 @@ fn steel_cmd() -> (Command, tempfile::TempDir) { let mut cmd = Command::new(env!("CARGO_BIN_EXE_steel")); cmd.env("STEEL_CONFIG_DIR", tmp.path()); cmd.env_remove("STEEL_API_KEY"); + cmd.env("STEEL_TELEMETRY_DISABLED", "1"); // Suppress update checks so they don't interfere with output cmd.arg("--no-update-check"); (cmd, tmp) @@ -453,6 +454,7 @@ fn steel_config_dir_is_respected() { let mut cmd = Command::new(env!("CARGO_BIN_EXE_steel")); cmd.env("STEEL_CONFIG_DIR", &config_dir); cmd.env_remove("STEEL_API_KEY"); + cmd.env("STEEL_TELEMETRY_DISABLED", "1"); cmd.args(["--no-update-check", "config"]); let output = cmd.output().expect("failed to execute steel binary"); diff --git a/tests/dev_command.rs b/tests/dev_command.rs index 921ac03..234b290 100644 --- a/tests/dev_command.rs +++ b/tests/dev_command.rs @@ -10,6 +10,7 @@ use std::process::Command; fn steel_cmd() -> Command { let mut cmd = Command::new(env!("CARGO_BIN_EXE_steel")); + cmd.env("STEEL_TELEMETRY_DISABLED", "1"); // Suppress update checks so they don't interfere with output. cmd.arg("--no-update-check"); cmd