Browse code

integration-cli: remove bash dependency of TestRunSlowStdoutConsumer

This makes this test case run on msys bash on windows or
cmd.exe.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>

Ahmet Alp Balkan authored on 2015/02/15 05:42:33
Showing 1 changed files
... ...
@@ -2617,7 +2617,7 @@ func TestRunVolumesCleanPaths(t *testing.T) {
2617 2617
 func TestRunSlowStdoutConsumer(t *testing.T) {
2618 2618
 	defer deleteAllContainers()
2619 2619
 
2620
-	c := exec.Command("/bin/bash", "-c", dockerBinary+` run --rm -i busybox /bin/sh -c "dd if=/dev/zero of=/foo bs=1024 count=2000 &>/dev/null; catv /foo"`)
2620
+	c := exec.Command(dockerBinary, "run", "--rm", "busybox", "/bin/sh", "-c", "dd if=/dev/zero of=/dev/stdout bs=1024 count=2000 | catv")
2621 2621
 
2622 2622
 	stdout, err := c.StdoutPipe()
2623 2623
 	if err != nil {