Merge pull request #43863 from vvoland/nit-windowscode

integration-cli: Remove unnecessary Windows-only code
This commit is contained in:
Sebastiaan van Stijn 2022-07-26 14:16:25 +02:00 committed by GitHub
commit 45f845a260
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)