Skip to content

Commit

Permalink
privtests: Show stderr on failure
Browse files Browse the repository at this point in the history
This test fell over, let's show what stderr actually had instead.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Feb 27, 2024
1 parent 34dd356 commit afc7381
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/privtests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,10 @@ pub(crate) fn impl_run_container() -> Result<()> {
let st = o.status;
assert!(!st.success());
let stderr = String::from_utf8(o.stderr)?;
assert!(stderr.contains("This command requires full root privileges"));
assert!(
stderr.contains("This command requires full root privileges"),
"stderr: {stderr}",
);
}
println!("ok upgrade/update are errors in container");

Expand Down

0 comments on commit afc7381

Please sign in to comment.