diff options
author | Casper Beyer <caspervonb@pm.me> | 2021-05-20 03:08:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 21:08:41 +0200 |
commit | 1f0a84530ab7e9129382d34a7d8c8f7e74e0d5ef (patch) | |
tree | b3338a252e710bdd58f40d2d05f443f6dd93ddcb | |
parent | 0768f8d369bf446ab7003e93819bebaf410ab6d4 (diff) |
fix(cli): always allow documentation modules to be checked (#10581)
-rw-r--r-- | cli/tools/test_runner.rs | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/cli/tools/test_runner.rs b/cli/tools/test_runner.rs index de251947b..ddfad8199 100644 --- a/cli/tools/test_runner.rs +++ b/cli/tools/test_runner.rs @@ -331,14 +331,6 @@ pub async fn run_tests( filter: Option<String>, concurrent_jobs: usize, ) -> Result<bool, AnyError> { - if test_modules.is_empty() { - println!("No matching test modules found"); - if !allow_none { - std::process::exit(1); - } - return Ok(false); - } - if !doc_modules.is_empty() { let mut test_programs = Vec::new(); @@ -415,6 +407,13 @@ pub async fn run_tests( program_state.maybe_import_map.clone(), ) .await?; + } else if test_modules.is_empty() { + println!("No matching test modules found"); + if !allow_none { + std::process::exit(1); + } + + return Ok(false); } program_state |