Skip to content

Commit

Permalink
tests: Another missing assert! change to dump stderr
Browse files Browse the repository at this point in the history
I missed that there were two here; followup to previous commit.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Feb 28, 2024
1 parent afc7381 commit 80c6aea
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 @@ -100,7 +100,10 @@ pub(crate) fn impl_run_container() -> Result<()> {
.output()?;
assert!(!o.status.success());
let stderr = String::from_utf8(o.stderr)?;
assert!(stderr.contains("requires root privileges"));
assert!(
stderr.contains("requires root privileges"),
"stderr: {stderr}"
);

let config = cmd!(sh, "bootc install print-configuration").read()?;
let mut config: InstallConfiguration =
Expand Down

0 comments on commit 80c6aea

Please sign in to comment.