From 752abd4bfbf81db4d9aad56c36bbb11630299212 Mon Sep 17 00:00:00 2001 From: Kyle Sferrazza <6677292+kylesferrazza@users.noreply.github.com> Date: Tue, 4 Feb 2020 12:48:01 -0500 Subject: [PATCH] fix: make echo test use /bin/sh (#892) --- src/utils.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.rs b/src/utils.rs index 758aeded..0aae93da 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -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(""), });