Merge pull request #12828 from tdmackey/trivial-spelling

trivial: typo cleanup
This commit is contained in:
Phil Estes
2015-04-27 17:05:46 -04:00
29 changed files with 39 additions and 39 deletions
@@ -643,7 +643,7 @@ func (s *DockerSuite) TestContainerApiCommit(c *check.C) {
// sanity check, make sure the image is what we think it is
out, err = exec.Command(dockerBinary, "run", img.Id, "ls", "/test").CombinedOutput()
if err != nil {
c.Fatalf("error checking commited image: %v - %q", err, string(out))
c.Fatalf("error checking committed image: %v - %q", err, string(out))
}
}
+2 -2
View File
@@ -161,7 +161,7 @@ func (s *DockerSuite) TestAttachDisconnect(c *check.C) {
c.Fatal(err)
}
if strings.TrimSpace(out) != "hello" {
c.Fatalf("exepected 'hello', got %q", out)
c.Fatalf("expected 'hello', got %q", out)
}
if err := stdin.Close(); err != nil {
@@ -174,7 +174,7 @@ func (s *DockerSuite) TestAttachDisconnect(c *check.C) {
c.Fatal(err)
}
if running != "true" {
c.Fatal("exepected container to still be running")
c.Fatal("expected container to still be running")
}
}
@@ -172,7 +172,7 @@ func (s *DockerSuite) TestAttachDetach(c *check.C) {
c.Fatal(err)
}
if strings.TrimSpace(out) != "hello" {
c.Fatalf("exepected 'hello', got %q", out)
c.Fatalf("expected 'hello', got %q", out)
}
// escape sequence
@@ -195,7 +195,7 @@ func (s *DockerSuite) TestAttachDetach(c *check.C) {
c.Fatal(err)
}
if running != "true" {
c.Fatal("exepected container to still be running")
c.Fatal("expected container to still be running")
}
go func() {
@@ -243,7 +243,7 @@ func (s *DockerSuite) TestAttachDetachTruncatedID(c *check.C) {
c.Fatal(err)
}
if strings.TrimSpace(out) != "hello" {
c.Fatalf("exepected 'hello', got %q", out)
c.Fatalf("expected 'hello', got %q", out)
}
// escape sequence
@@ -266,7 +266,7 @@ func (s *DockerSuite) TestAttachDetachTruncatedID(c *check.C) {
c.Fatal(err)
}
if running != "true" {
c.Fatal("exepected container to still be running")
c.Fatal("expected container to still be running")
}
go func() {
+2 -2
View File
@@ -3408,7 +3408,7 @@ func (s *DockerSuite) TestBuildVerifyIntString(c *check.C) {
out, rc, err := runCommandWithOutput(exec.Command(dockerBinary, "inspect", name))
if rc != 0 || err != nil {
c.Fatalf("Unexcepted error from inspect: rc: %v err: %v", rc, err)
c.Fatalf("Unexpected error from inspect: rc: %v err: %v", rc, err)
}
if !strings.Contains(out, "\"123\"") {
@@ -5033,7 +5033,7 @@ RUN echo " \
expecting := "\n foo \n"
if !strings.Contains(out, expecting) {
c.Fatalf("Bad output: %q expecting to contian %q", out, expecting)
c.Fatalf("Bad output: %q expecting to contain %q", out, expecting)
}
}
+1 -1
View File
@@ -262,7 +262,7 @@ func (s *DockerSuite) TestCommitMergeConfigRun(c *check.C) {
out, _ = dockerCmd(c, "run", "--name", name, "commit-test")
if strings.TrimSpace(out) != "testing" {
c.Fatal("run config in commited container was not merged")
c.Fatal("run config in committed container was not merged")
}
type cfg struct {
+1 -1
View File
@@ -860,7 +860,7 @@ func (s *DockerSuite) TestDaemonwithwrongkey(c *check.C) {
if err := d1.Start(); err == nil {
d1.Stop()
c.Fatalf("It should not be succssful to start daemon with wrong key: %v", err)
c.Fatalf("It should not be successful to start daemon with wrong key: %v", err)
}
content, _ := ioutil.ReadFile(d1.logFile.Name())
+1 -1
View File
@@ -547,7 +547,7 @@ func (s *DockerSuite) TestPsListContainersFilterExited(c *check.C) {
}
ids = strings.Split(strings.TrimSpace(out), "\n")
if len(ids) != 2 {
c.Fatalf("Should be 2 zero exited containerst got %d", len(ids))
c.Fatalf("Should be 2 zero exited containers got %d", len(ids))
}
if ids[0] != secondNonZero {
c.Fatalf("First in list should be %q, got %q", secondNonZero, ids[0])
+2 -2
View File
@@ -41,7 +41,7 @@ func (s *DockerRegistrySuite) TestPushUntagged(c *check.C) {
expected := "Repository does not exist"
pushCmd := exec.Command(dockerBinary, "push", repoName)
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
c.Fatalf("pushing the image to the private registry should have failed: outuput %q", out)
c.Fatalf("pushing the image to the private registry should have failed: output %q", out)
} else if !strings.Contains(out, expected) {
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
}
@@ -53,7 +53,7 @@ func (s *DockerRegistrySuite) TestPushBadTag(c *check.C) {
expected := "does not exist"
pushCmd := exec.Command(dockerBinary, "push", repoName)
if out, _, err := runCommandWithOutput(pushCmd); err == nil {
c.Fatalf("pushing the image to the private registry should have failed: outuput %q", out)
c.Fatalf("pushing the image to the private registry should have failed: output %q", out)
} else if !strings.Contains(out, expected) {
c.Fatalf("pushing the image failed with an unexpected message: expected %q, got %q", expected, out)
}
+1 -1
View File
@@ -108,7 +108,7 @@ func (s *DockerSuite) TestRmiImgIDForce(c *check.C) {
runCmd = exec.Command(dockerBinary, "rmi", imgID)
out, _, err = runCommandWithOutput(runCmd)
if err == nil || !strings.Contains(out, fmt.Sprintf("Conflict, cannot delete image %s because it is tagged in multiple repositories, use -f to force", imgID)) {
c.Fatalf("rmi tagged in mutiple repos should have failed without force:%s, %v", out, err)
c.Fatalf("rmi tagged in multiple repos should have failed without force:%s, %v", out, err)
}
dockerCmd(c, "rmi", "-f", imgID)
+2 -2
View File
@@ -329,7 +329,7 @@ func (s *DockerSuite) TestRunLinksContainerWithContainerId(c *check.C) {
cmd = exec.Command(dockerBinary, "inspect", "-f", "{{.NetworkSettings.IPAddress}}", cID)
ip, _, _, err := runCommandWithStdoutStderr(cmd)
if err != nil {
c.Fatalf("faild to inspect container: %v, output: %q", err, ip)
c.Fatalf("failed to inspect container: %v, output: %q", err, ip)
}
ip = strings.TrimSpace(ip)
cmd = exec.Command(dockerBinary, "run", "--link", cID+":test", "busybox", "/bin/cat", "/etc/hosts")
@@ -2067,7 +2067,7 @@ func (s *DockerSuite) TestRunCidFileCleanupIfEmpty(c *check.C) {
if err == nil {
c.Fatalf("Run without command must fail. out=%s", out)
} else if !strings.Contains(out, "No command specified") {
c.Fatalf("Run without command failed with wrong outpuc. out=%s\nerr=%v", out, err)
c.Fatalf("Run without command failed with wrong output. out=%s\nerr=%v", out, err)
}
if _, err := os.Stat(tmpCidFile); err == nil {
+2 -2
View File
@@ -213,7 +213,7 @@ func (s *DockerSuite) TestRunAttachDetach(c *check.C) {
c.Fatal(err)
}
if strings.TrimSpace(out) != "hello" {
c.Fatalf("exepected 'hello', got %q", out)
c.Fatalf("expected 'hello', got %q", out)
}
// escape sequence
@@ -236,7 +236,7 @@ func (s *DockerSuite) TestRunAttachDetach(c *check.C) {
c.Fatal(err)
}
if running != "true" {
c.Fatal("exepected container to still be running")
c.Fatal("expected container to still be running")
}
go func() {
+1 -1
View File
@@ -333,7 +333,7 @@ func (s *DockerSuite) TestSaveRepoWithMultipleImages(c *check.C) {
sort.Strings(actual)
sort.Strings(expected)
if !reflect.DeepEqual(expected, actual) {
c.Fatalf("achive does not contains the right layers: got %v, expected %v", actual, expected)
c.Fatalf("archive does not contains the right layers: got %v, expected %v", actual, expected)
}
}
+1 -1
View File
@@ -205,7 +205,7 @@ func (s *DockerSuite) TestStartMultipleContainers(c *check.C) {
c.Fatal("Container should be stopped")
}
// start all the three containers, container `child_first` start first which should be faild
// start all the three containers, container `child_first` start first which should be failed
// container 'parent' start second and then start container 'child_second'
cmd = exec.Command(dockerBinary, "start", "child_first", "parent", "child_second")
out, _, err = runCommandWithOutput(cmd)