1
1
mirror of https://github.com/casey/just.git synced 2024-11-30 11:17:32 +03:00
just/tests/assert_success.rs

10 lines
274 B
Rust
Raw Normal View History

use super::*;
2021-07-04 00:26:59 +03:00
pub(crate) fn assert_success(output: &Output) {
if !output.status.success() {
eprintln!("stderr: {}", String::from_utf8_lossy(&output.stderr));
eprintln!("stdout: {}", String::from_utf8_lossy(&output.stdout));
panic!("{}", output.status);
}
}