Skip to content

Commit

Permalink
Fix to not return an error if all the E2E tests are filtered out. (Fu…
Browse files Browse the repository at this point in the history
…elLabs#3124)

This would then abort before the `ir_generation` tests could have a go.
  • Loading branch information
otrho authored Oct 25, 2022
1 parent a797838 commit 37dbe4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/src/e2e_vm_tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ pub async fn run(filter_config: &FilterConfig, run_config: &RunConfig) -> Result
if !disabled_tests.is_empty() {
tracing::info!("{} tests were disabled.", disabled_tests.len());
}
bail!(
tracing::warn!(
"No tests were run. Regex filters filtered out all {} tests.",
total_number_of_tests
);
Expand All @@ -271,8 +271,8 @@ pub async fn run(filter_config: &FilterConfig, run_config: &RunConfig) -> Result
({} disabled).",
disabled_tests.len()
);
Ok(())
}
Ok(())
}

fn discover_test_configs() -> Result<Vec<TestDescription>> {
Expand Down

0 comments on commit 37dbe4b

Please sign in to comment.