10 lines
282 B
Rust
10 lines
282 B
Rust
use crate::common::*;
|
|
|
|
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);
|
|
}
|
|
}
|