Explorar o código

[test] fix failure of TestBuildLabelsOverride on Windows

TestBuildLabelsOverride was consistently failing due to "Windows does not support FROM scratch" error

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Akihiro Suda %!s(int64=8) %!d(string=hai) anos
pai
achega
bb17d1fabb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      integration-cli/docker_cli_build_test.go

+ 1 - 1
integration-cli/docker_cli_build_test.go

@@ -6636,7 +6636,7 @@ func (s *DockerSuite) TestBuildLabelsOverride(c *check.C) {
 	name = "scratchz"
 	expected = `{"bar":"$PATH"}`
 	_, err = buildImage(name,
-		`FROM scratch`,
+		`FROM `+minimalBaseImage(),
 		true, "--label", "bar=$PATH")
 	c.Assert(err, check.IsNil)