From afc7381432e04e7b75b7812dec470076f6df03ff Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 27 Feb 2024 17:51:22 -0500 Subject: [PATCH] privtests: Show stderr on failure This test fell over, let's show what stderr actually had instead. Signed-off-by: Colin Walters --- lib/src/privtests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/privtests.rs b/lib/src/privtests.rs index 68a0453bd..bdc4ea0da 100644 --- a/lib/src/privtests.rs +++ b/lib/src/privtests.rs @@ -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");