Jelajahi Sumber

[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 8 tahun lalu
induk
melakukan
bb17d1fabb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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)