test: add command and status to assertion messages

This commit is contained in:
Andrew Phillips
2025-05-14 09:34:52 -03:00
committed by Andrew Phillips (aider)
parent 7af9147abd
commit 412f5d74d0

View File

@@ -46,7 +46,12 @@ mod tests {
// Create first item with tag_a and tag
let cmd = format!("echo {} | {} tag tag_a tag", INPUT_A, env);
let output = run_sh(cmd.as_str());
assert!(output.status.success(), "Command failed: {}", INPUT_A);
assert!(
output.status.success(),
"Command failed: {} {}",
cmd,
output.status
);
// Create second item with tag_b and tag
let cmd = format!("echo {} | {} tag tag_b tag", INPUT_B, env);