Skip to content

Commit 649f709

Browse files
committed
fix: only show walltime collection warning when appropriate
1 parent d525802 commit 649f709

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/codspeed/src/walltime.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ pub fn collect_raw_walltime_results(
5858
max_time_ns: Option<u128>,
5959
times_ns: Vec<u128>,
6060
) {
61+
if std::env::var("CODSPEED_ENV").is_err() {
62+
return;
63+
}
6164
let workspace_root = std::env::var("CODSPEED_CARGO_WORKSPACE_ROOT").map(PathBuf::from);
6265
let Ok(workspace_root) = workspace_root else {
6366
eprintln!("codspeed failed to get workspace root. skipping");

0 commit comments

Comments
 (0)