Skip to content

Commit

Permalink
Merge pull request #764 from Skgland/pr760-follow-up
Browse files Browse the repository at this point in the history
follow up to #760, fix parsing FailureReason::Docker from string
  • Loading branch information
pietroalbini authored Jan 16, 2025
2 parents d12bc6e + 2b7ca08 commit 7d0e641
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/results/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ impl ::std::str::FromStr for FailureReason {
"timeout" => Ok(FailureReason::Timeout),
"ice" => Ok(FailureReason::ICE),
"no-space" => Ok(FailureReason::NoSpace),
"docker" => Ok(FailureReason::Docker),
_ => bail!("unexpected value: {}", s),
}
}
Expand Down Expand Up @@ -356,6 +357,7 @@ mod tests {
//"build-fail:depends-on()" => BuildFail(DependsOn(vec!["001"])),
test_from_str! {
"build-fail:unknown" => BuildFail(Unknown),
"build-fail:docker" => BuildFail(Docker),
"build-fail:compiler-error(001, 002)" => BuildFail(CompilerError(btreeset!["001".parse().unwrap(), "002".parse().unwrap()])),
"build-fail:compiler-error(001)" => BuildFail(CompilerError(btreeset!["001".parse().unwrap()])),
"build-fail:oom" => BuildFail(OOM),
Expand Down

0 comments on commit 7d0e641

Please sign in to comment.