Skip to content

Commit

Permalink
Merge pull request #368 from cgwalters/assert-compare
Browse files Browse the repository at this point in the history
privtests: Show stderr on failure
  • Loading branch information
jeckersb authored Feb 28, 2024
2 parents db13d83 + afc7381 commit 706b592
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 706b592

Please sign in to comment.