Browse code

[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 authored on 2016/10/16 20:05:31
Showing 1 changed files
... ...
@@ -6636,7 +6636,7 @@ func (s *DockerSuite) TestBuildLabelsOverride(c *check.C) {
6636 6636
 	name = "scratchz"
6637 6637
 	expected = `{"bar":"$PATH"}`
6638 6638
 	_, err = buildImage(name,
6639
-		`FROM scratch`,
6639
+		`FROM `+minimalBaseImage(),
6640 6640
 		true, "--label", "bar=$PATH")
6641 6641
 	c.Assert(err, check.IsNil)
6642 6642