Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: include stdout and exit status in prompt dump failure message

Steven Enamakelfe2ec47861e1
diff --git a/tests/tinyflows_published_prompt_e2e.rs b/tests/tinyflows_published_prompt_e2e.rs
index bddbbbf4ff..804ff2fd65 100644
--- a/tests/tinyflows_published_prompt_e2e.rs
+++ b/tests/tinyflows_published_prompt_e2e.rs
@@ -45,7 +45,9 @@ fn dump_published_prompt(
.expect("run the public prompt-dump command");
assert!(
output.status.success(),
- "prompt dump for {agent_id} failed: {}",
+ "prompt dump for {agent_id} failed ({}):\nstdout:\n{}\nstderr:\n{}",
+ output.status,
+ String::from_utf8_lossy(&output.stdout),
String::from_utf8_lossy(&output.stderr)
);
serde_json::from_slice(&output.stdout).expect("decode public prompt-dump JSON")