Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
scheduler: Add the ability to suppress `Running seed` output (#57525)
Cole Millerde529b56779c
diff --git a/crates/scheduler/src/test_scheduler.rs b/crates/scheduler/src/test_scheduler.rsindex c4c536c0977..656d2f63be7 100644--- a/crates/scheduler/src/test_scheduler.rs+++ b/crates/scheduler/src/test_scheduler.rs@@ -57,10 +57,14 @@ impl TestScheduler {.map(|seed| seed.parse().unwrap()).unwrap_or(0);+ let interactive = !std::env::var("SCHEDULER_NONINTERACTIVE").is_ok();+(seed..seed + num_iterations as u64).map(|seed| {let mut unwind_safe_f = AssertUnwindSafe(&mut f);- eprintln!("Running seed: {seed}");+ if interactive {+ eprintln!("Running seed: {seed}");+ }match panic::catch_unwind(move || Self::with_seed(seed, &mut *unwind_safe_f)) {Ok(result) => result,Err(error) => {