From e151ad936abecce944e3f7c285fa788c2dc1bba1 Mon Sep 17 00:00:00 2001 From: Zhang Wei Date: Sun, 24 Jan 2016 16:32:52 +0800 Subject: [PATCH] Make test case name consistent Replace `Tty` with `TTY` in all test case names so that we can run a bundle of `TTY` related test cases with TESTFLAGS like `-check.f TestExecTTY*` Signed-off-by: Zhang Wei --- integration-cli/docker_cli_attach_test.go | 2 +- integration-cli/docker_cli_exec_test.go | 4 ++-- integration-cli/docker_cli_run_test.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/integration-cli/docker_cli_attach_test.go b/integration-cli/docker_cli_attach_test.go index 757eb7b7fe..b8a4a92189 100644 --- a/integration-cli/docker_cli_attach_test.go +++ b/integration-cli/docker_cli_attach_test.go @@ -86,7 +86,7 @@ func (s *DockerSuite) TestAttachMultipleAndRestart(c *check.C) { } } -func (s *DockerSuite) TestAttachTtyWithoutStdin(c *check.C) { +func (s *DockerSuite) TestAttachTTYWithoutStdin(c *check.C) { testRequires(c, DaemonIsLinux) out, _ := dockerCmd(c, "run", "-d", "-ti", "busybox") diff --git a/integration-cli/docker_cli_exec_test.go b/integration-cli/docker_cli_exec_test.go index 1d3cfa21d8..5ed7ded44d 100644 --- a/integration-cli/docker_cli_exec_test.go +++ b/integration-cli/docker_cli_exec_test.go @@ -140,7 +140,7 @@ func (s *DockerSuite) TestExecPausedContainer(c *check.C) { } // regression test for #9476 -func (s *DockerSuite) TestExecTtyCloseStdin(c *check.C) { +func (s *DockerSuite) TestExecTTYCloseStdin(c *check.C) { testRequires(c, DaemonIsLinux) dockerCmd(c, "run", "-d", "-it", "--name", "exec_tty_stdin", "busybox") @@ -160,7 +160,7 @@ func (s *DockerSuite) TestExecTtyCloseStdin(c *check.C) { c.Assert(out, checker.Not(checker.Contains), "nsenter-exec") } -func (s *DockerSuite) TestExecTtyWithoutStdin(c *check.C) { +func (s *DockerSuite) TestExecTTYWithoutStdin(c *check.C) { testRequires(c, DaemonIsLinux) out, _ := dockerCmd(c, "run", "-d", "-ti", "busybox") id := strings.TrimSpace(out) diff --git a/integration-cli/docker_cli_run_test.go b/integration-cli/docker_cli_run_test.go index 1bf21d78eb..c2461a78e2 100644 --- a/integration-cli/docker_cli_run_test.go +++ b/integration-cli/docker_cli_run_test.go @@ -2548,7 +2548,7 @@ func (s *DockerSuite) TestRunPortFromDockerRangeInUse(c *check.C) { dockerCmd(c, "port", id) } -func (s *DockerSuite) TestRunTtyWithPipe(c *check.C) { +func (s *DockerSuite) TestRunTTYWithPipe(c *check.C) { errChan := make(chan error) go func() { defer close(errChan)