mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-02-05 13:38:31 +00:00
fix: make echo test use /bin/sh (#892)
This commit is contained in:
parent
8e9d9409cf
commit
752abd4bfb
@ -102,9 +102,9 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn exec_with_output_stdout() {
|
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 {
|
let expected = Some(CommandOutput {
|
||||||
stdout: String::from("hello"),
|
stdout: String::from("hello\n"),
|
||||||
stderr: String::from(""),
|
stderr: String::from(""),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user