test: add command and status to assertion messages
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
7af9147abd
commit
412f5d74d0
@@ -46,7 +46,12 @@ mod tests {
|
|||||||
// Create first item with tag_a and tag
|
// Create first item with tag_a and tag
|
||||||
let cmd = format!("echo {} | {} tag tag_a tag", INPUT_A, env);
|
let cmd = format!("echo {} | {} tag tag_a tag", INPUT_A, env);
|
||||||
let output = run_sh(cmd.as_str());
|
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
|
// Create second item with tag_b and tag
|
||||||
let cmd = format!("echo {} | {} tag tag_b tag", INPUT_B, env);
|
let cmd = format!("echo {} | {} tag tag_b tag", INPUT_B, env);
|
||||||
|
|||||||
Reference in New Issue
Block a user