diff options
author | Kyle Sferrazza <6677292+kylesferrazza@users.noreply.github.com> | 2020-02-04 12:48:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 12:48:01 -0500 |
commit | 752abd4bfbf81db4d9aad56c36bbb11630299212 (patch) | |
tree | 3912b61482e72c177c0559266557dc37c2231192 /src/utils.rs | |
parent | 8e9d9409cf357c8e4c51a8f6fa88efea58be8e79 (diff) |
fix: make echo test use /bin/sh (#892)
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 4 |
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(""), }); |