feat: skip tests run if the config is invalid

This commit is contained in:
adrian
2025-09-12 09:45:43 +02:00
committed by Adrian Benavides
parent 85080dd6c7
commit 92336df9bb
2 changed files with 8 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
use std::str::FromStr;
use alloy::{primitives::Keccak256, sol_types::SolValue};
use miette::{miette, IntoDiagnostic, WrapErr};
use miette::{IntoDiagnostic, WrapErr};
use num_bigint::BigUint;
use tycho_common::{dto::Chain, Bytes};
use tycho_simulation::{

View File

@@ -101,7 +101,13 @@ impl TestRunner {
return Ok(());
}
let config = Self::parse_config(&config_yaml_path)?;
let config = match Self::parse_config(&config_yaml_path) {
Ok(cfg) => cfg,
Err(e) => {
warn!("Failed to parse config: {:?}", e);
return Ok(());
}
};
let tests = match &self.match_test {
Some(filter) => config