Skip to content

Commit

Permalink
output: don't early return on failure of getting testcases
Browse files Browse the repository at this point in the history
依然解析 packages 信息
  • Loading branch information
zjp-CN committed Oct 30, 2024
1 parent ef494ee commit e59aa0f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/repo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ impl Repo {
}

pub fn output(&self) -> Result<serde_json::Value> {
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());
Expand Down

0 comments on commit e59aa0f

Please sign in to comment.