integration-cli: Remove unnecessary Windows-only code
This test is skipped on Windows anyway. Also add a short explanation why emptyfs image was chosen. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
parent
98d8343aa2
commit
6cc644abef
1 changed files with 1 additions and 4 deletions
|
@ -1945,11 +1945,8 @@ func (s *DockerCLIRunSuite) TestRunCidFileCleanupIfEmpty(c *testing.T) {
|
|||
defer os.RemoveAll(tmpDir)
|
||||
tmpCidFile := path.Join(tmpDir, "cid")
|
||||
|
||||
// This must be an image that has no CMD or ENTRYPOINT set
|
||||
image := "emptyfs"
|
||||
if testEnv.OSType == "windows" {
|
||||
// Windows can't support an emptyfs image. Just use the regular Windows image
|
||||
image = testEnv.PlatformDefaults.BaseImage
|
||||
}
|
||||
out, _, err := dockerCmdWithError("run", "--cidfile", tmpCidFile, image)
|
||||
if err == nil {
|
||||
c.Fatalf("Run without command must fail. out=%s", out)
|
||||
|
|
Loading…
Reference in a new issue