(output: &Output)
| 251 | } |
| 252 | |
| 253 | fn text(output: &Output) -> String { |
| 254 | format!( |
| 255 | "{}{}", |
| 256 | String::from_utf8_lossy(&output.stdout), |
| 257 | String::from_utf8_lossy(&output.stderr) |
| 258 | ) |
| 259 | } |
| 260 | |
| 261 | fn ok(output: Output, what: &str) -> String { |
| 262 | assert!(output.status.success(), "{what} failed:\n{}", text(&output)); |