From e59aa0f3d1ba43dd38476aa29a515efa5ba3e8c8 Mon Sep 17 00:00:00 2001 From: zjp Date: Wed, 30 Oct 2024 11:09:29 +0800 Subject: [PATCH] output: don't early return on failure of getting testcases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 依然解析 packages 信息 --- src/repo/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/repo/mod.rs b/src/repo/mod.rs index 1216043..a2fc471 100644 --- a/src/repo/mod.rs +++ b/src/repo/mod.rs @@ -57,7 +57,10 @@ impl Repo { } pub fn output(&self) -> Result { - let mut test_cases = self.get_pkg_tests()?; + let mut test_cases = self + .get_pkg_tests() + .inspect_err(|err| error!(?err, "Failed to get testcases")) + .unwrap_or_default(); let pkgs = self.packages(); let mut outputs = IndexMap::with_capacity(pkgs.len());