From d676531ca59620e037cf2086e437bb9cc18f05f2 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 15 May 2025 13:36:40 -0400 Subject: [PATCH] Log entire command --- test-distro/src/init.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test-distro/src/init.rs b/test-distro/src/init.rs index 2b78ceff..c8f16365 100644 --- a/test-distro/src/init.rs +++ b/test-distro/src/init.rs @@ -134,11 +134,12 @@ fn run() -> anyhow::Result<()> { .map(|entry| { let entry = entry.context("read_dir(/bin) failed")?; let path = entry.path(); - let status = std::process::Command::new(&path) + let mut cmd = std::process::Command::new(&path); + let status = cmd .args(&args) .env("RUST_LOG", "debug") .status() - .with_context(|| format!("failed to execute {}", path.display()))?; + .with_context(|| format!("failed to execute {cmd:?}"))?; if status.code() == Some(0) { Ok(())