From a466c57611ac645cfe5f3af2ff2f20be2f30f395 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 6 Apr 2024 23:54:33 +0200 Subject: driver: do not kill remaining tasks immediately on failure --- crates/driver/src/main.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'crates/driver/src/main.rs') diff --git a/crates/driver/src/main.rs b/crates/driver/src/main.rs index 98aa10a..44e5e1d 100644 --- a/crates/driver/src/main.rs +++ b/crates/driver/src/main.rs @@ -62,8 +62,15 @@ fn main() { } let taskset = rsv.into_taskset(); let mut driver = driver::Driver::new(&ctx, taskset, force_run).unwrap(); - if let Err(error) = driver.run(&runner) { - eprintln!("{}", error); - std::process::exit(1); + match driver.run(&runner) { + Ok(success) => { + if !success { + std::process::exit(1); + } + } + Err(error) => { + eprintln!("{}", error); + std::process::exit(1); + } } } -- cgit v1.2.3