fix: replace .expect() with output status check
This commit is contained in:
@@ -253,7 +253,8 @@ mod tests {
|
|||||||
let input = "test content";
|
let input = "test content";
|
||||||
// Create a command that pipes input to keep with the specified environment and compression
|
// Create a command that pipes input to keep with the specified environment and compression
|
||||||
let cmd = format!("echo {} | {}", input, env);
|
let cmd = format!("echo {} | {}", input, env);
|
||||||
run_sh(cmd.as_str()).expect("Failed to execute command");
|
let output = run_sh(cmd.as_str());
|
||||||
|
assert!(output.status.success(), "Command failed with status: {}", output.status);
|
||||||
|
|
||||||
// Get the item ID
|
// Get the item ID
|
||||||
let list_output = Command::new("sh")
|
let list_output = Command::new("sh")
|
||||||
|
|||||||
Reference in New Issue
Block a user