Merge pull request #19744 from Microsoft/jjh/testhistory

Windows CI: Enable TestHistory* cli tests
This commit is contained in:
Arnaud Porterie 2016-01-26 19:08:33 -08:00
commit 603c04a789
1 changed files with 0 additions and 5 deletions

View File

@ -13,7 +13,6 @@ import (
// This is a heisen-test. Because the created timestamp of images and the behavior of
// sort is not predictable it doesn't always fail.
func (s *DockerSuite) TestBuildHistory(c *check.C) {
testRequires(c, DaemonIsLinux)
name := "testbuildhistory"
_, err := buildImage(name, `FROM busybox
RUN echo "A"
@ -59,7 +58,6 @@ RUN echo "Z"`,
}
func (s *DockerSuite) TestHistoryExistentImage(c *check.C) {
testRequires(c, DaemonIsLinux)
dockerCmd(c, "history", "busybox")
}
@ -69,7 +67,6 @@ func (s *DockerSuite) TestHistoryNonExistentImage(c *check.C) {
}
func (s *DockerSuite) TestHistoryImageWithComment(c *check.C) {
testRequires(c, DaemonIsLinux)
name := "testhistoryimagewithcomment"
// make a image through docker commit <container id> [ -m messages ]
@ -89,7 +86,6 @@ func (s *DockerSuite) TestHistoryImageWithComment(c *check.C) {
}
func (s *DockerSuite) TestHistoryHumanOptionFalse(c *check.C) {
testRequires(c, DaemonIsLinux)
out, _ := dockerCmd(c, "history", "--human=false", "busybox")
lines := strings.Split(out, "\n")
sizeColumnRegex, _ := regexp.Compile("SIZE +")
@ -108,7 +104,6 @@ func (s *DockerSuite) TestHistoryHumanOptionFalse(c *check.C) {
}
func (s *DockerSuite) TestHistoryHumanOptionTrue(c *check.C) {
testRequires(c, DaemonIsLinux)
out, _ := dockerCmd(c, "history", "--human=true", "busybox")
lines := strings.Split(out, "\n")
sizeColumnRegex, _ := regexp.Compile("SIZE +")