Browse code

Minor fix to the exec inspect test

Signed-off-by: Doug Davis <dug@us.ibm.com>

Doug Davis authored on 2015/07/10 11:47:01
Showing 1 changed files
... ...
@@ -427,7 +427,7 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) {
427 427
 		c.Fatalf("ExecIDs should be empty, got: %s", out)
428 428
 	}
429 429
 
430
-	exitCode, err = runCommand(exec.Command(dockerBinary, "exec", "-d", id, "ls", "/"))
430
+	exitCode, err = runCommand(exec.Command(dockerBinary, "exec", "-d", id, "top"))
431 431
 	if exitCode != 0 || err != nil {
432 432
 		c.Fatalf("failed to exec in container: %s, %v", out, err)
433 433
 	}
... ...
@@ -441,7 +441,6 @@ func (s *DockerSuite) TestInspectExecID(c *check.C) {
441 441
 	if out == "[]" || out == "<no value>" {
442 442
 		c.Fatalf("ExecIDs should not be empty, got: %s", out)
443 443
 	}
444
-
445 444
 }
446 445
 
447 446
 func (s *DockerSuite) TestLinksPingLinkedContainersOnRename(c *check.C) {