fix: make echo test use /bin/sh (#892)

This commit is contained in:
Kyle Sferrazza 2020-02-04 12:48:01 -05:00 committed by GitHub
parent 8e9d9409cf
commit 752abd4bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,9 +102,9 @@ mod tests {
#[test]
fn exec_with_output_stdout() {
let result = internal_exec_cmd("/bin/echo", &["-n", "hello"]);
let result = internal_exec_cmd("/bin/sh", &["-c", "echo hello"]);
let expected = Some(CommandOutput {
stdout: String::from("hello"),
stdout: String::from("hello\n"),
stderr: String::from(""),
});