Skip to content

Commit 7d0e641

Browse files
authored
Merge pull request #764 from Skgland/pr760-follow-up
follow up to #760, fix parsing FailureReason::Docker from string
2 parents d12bc6e + 2b7ca08 commit 7d0e641

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/results/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ impl ::std::str::FromStr for FailureReason {
272272
"timeout" => Ok(FailureReason::Timeout),
273273
"ice" => Ok(FailureReason::ICE),
274274
"no-space" => Ok(FailureReason::NoSpace),
275+
"docker" => Ok(FailureReason::Docker),
275276
_ => bail!("unexpected value: {}", s),
276277
}
277278
}
@@ -356,6 +357,7 @@ mod tests {
356357
//"build-fail:depends-on()" => BuildFail(DependsOn(vec!["001"])),
357358
test_from_str! {
358359
"build-fail:unknown" => BuildFail(Unknown),
360+
"build-fail:docker" => BuildFail(Docker),
359361
"build-fail:compiler-error(001, 002)" => BuildFail(CompilerError(btreeset!["001".parse().unwrap(), "002".parse().unwrap()])),
360362
"build-fail:compiler-error(001)" => BuildFail(CompilerError(btreeset!["001".parse().unwrap()])),
361363
"build-fail:oom" => BuildFail(OOM),

0 commit comments

Comments
 (0)