Skip to content

Commit d78ae4a

Browse files
committed
chore: partial revert of "refactor: use helper to check if running with codspeed runner"
1 parent 07d226e commit d78ae4a

File tree

1 file changed

+1
-1
lines changed
  • crates/criterion_compat/criterion_fork/src

1 file changed

+1
-1
lines changed

crates/criterion_compat/criterion_fork/src/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ macro_rules! criterion_group {
6868
let mut criterion: $crate::Criterion<_> = $config
6969
.configure_from_args();
7070
$(
71-
if codspeed::utils::running_with_codspeed_runner() {
71+
if std::env::var("CODSPEED_ENV").is_ok() {
7272
criterion.set_current_file($crate::abs_file!());
7373
criterion.set_macro_group(format!("{}::{}", stringify!($name), stringify!($target)));
7474
}

0 commit comments

Comments
 (0)