diff options
author | 2015-02-16 14:38:06 +0000 | |
---|---|---|
committer | 2015-02-16 14:38:06 +0000 | |
commit | 8dff4291cc4e7a31f4207ecb8041099b5a63d146 (patch) | |
tree | e6c20cde09b5ceafa2838d7ca5178845a16abe80 /src/test/java | |
parent | efe7f66b9c8e3eae7e3f6a953af9b88111b34cd1 (diff) |
Use /bin/bash for the Flush test.
--
MOS_MIGRATED_REVID=86430394
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/shell/CommandTest.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java index 27d4e2af82..4531cd5d7a 100644 --- a/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java +++ b/src/test/java/com/google/devtools/build/lib/shell/CommandTest.java @@ -475,7 +475,8 @@ public class CommandTest { @Test public void testFlushing() throws Exception { final Command command = new Command( - new String[] {"/bin/sh", "-c", "echo -n Foo; sleep 0.1; echo Bar"}); + // On darwin, /bin/sh does not support -n for the echo builtin. + new String[] {"/bin/bash", "-c", "echo -n Foo; sleep 0.1; echo Bar"}); // We run this command, passing in a special output stream // that records when each flush() occurs. // We test that a flush occurs after writing "Foo" |