veyron/lib/modules/core: remove unrecognized flag
The echo command built into /bin/sh on mac apparently doesn't recognize
the -n (omit newline) flag.
Change-Id: If96ad9bf0f84fad983cdc9bd61767efb1acacd2e
diff --git a/lib/modules/core/core_test.go b/lib/modules/core/core_test.go
index 14ab572..daf036e 100644
--- a/lib/modules/core/core_test.go
+++ b/lib/modules/core/core_test.go
@@ -200,7 +200,7 @@
func TestExec(t *testing.T) {
sh, cleanup := newShell(t)
defer cleanup()
- h, err := sh.Start(core.ExecCommand, nil, []string{"/bin/sh", "-c", "echo -n hello world"}...)
+ h, err := sh.Start(core.ExecCommand, nil, []string{"/bin/sh", "-c", "echo hello world"}...)
if err != nil {
t.Fatalf("unexpected error: %s", err)
}
@@ -208,7 +208,7 @@
if _, err := output.ReadFrom(h.Stdout()); err != nil {
t.Fatalf("could not read output from command: %v", err)
}
- if got, want := output.String(), "hello world"; got != want {
+ if got, want := output.String(), "hello world\n"; got != want {
t.Fatalf("unexpected output: got %v, want %v", got, want)
}
}