summaryrefslogtreecommitdiffstats
path: root/src/utils.rs
diff options
context:
space:
mode:
authorKyle Sferrazza <6677292+kylesferrazza@users.noreply.github.com>2020-02-04 12:48:01 -0500
committerGitHub <noreply@github.com>2020-02-04 12:48:01 -0500
commit752abd4bfbf81db4d9aad56c36bbb11630299212 (patch)
tree3912b61482e72c177c0559266557dc37c2231192 /src/utils.rs
parent8e9d9409cf357c8e4c51a8f6fa88efea58be8e79 (diff)
fix: make echo test use /bin/sh (#892)
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 758aededc..0aae93da9 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(""),
});