test: Improve error messages in test_compression

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 16:05:02 -03:00
parent e72ef13c60
commit c46e78b067

View File

@@ -340,12 +340,12 @@ mod tests {
// Test with gzip compression // Test with gzip compression
let cmd = format!("echo {} | {} -c gzip --tag gzip", INPUT_A, env); let cmd = format!("echo {} | {} -c gzip --tag gzip", 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);
// Test with bzip2 compression // Test with bzip2 compression
let cmd = format!("echo {} | {} -c bzip2 --tag bzip2", INPUT_A, env); let cmd = format!("echo {} | {} -c bzip2 --tag bzip2", 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);
// Verify all items were created // Verify all items were created
let cmd = format!("{} --list", env); let cmd = format!("{} --list", env);