Scan pushed directories for tests and run specified passes from commandline on them.
(&mut self, passes: &[String], target: &str)
| 370 | |
| 371 | /// Scan pushed directories for tests and run specified passes from commandline on them. |
| 372 | pub fn run_passes(&mut self, passes: &[String], target: &str) -> anyhow::Result<()> { |
| 373 | self.scan_dirs(IsPass::Pass); |
| 374 | self.schedule_pass_job(passes, target); |
| 375 | self.report_slow_tests(); |
| 376 | self.drain_threads(); |
| 377 | |
| 378 | println!("{} tests", self.tests.len()); |
| 379 | match self.errors { |
| 380 | 0 => Ok(()), |
| 381 | 1 => anyhow::bail!("1 failure"), |
| 382 | n => anyhow::bail!("{n} failures"), |
| 383 | } |
| 384 | } |
| 385 | } |
no test coverage detected