Browse code

Windows: Skip RunCidFileCleanupIfEmpty on RS1

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2016/06/29 05:04:42
Showing 1 changed files
... ...
@@ -2034,6 +2034,14 @@ func (s *DockerSuite) TestRunBindMounts(c *check.C) {
2034 2034
 // Ensure that CIDFile gets deleted if it's empty
2035 2035
 // Perform this test by making `docker run` fail
2036 2036
 func (s *DockerSuite) TestRunCidFileCleanupIfEmpty(c *check.C) {
2037
+	// Windows Server 2016 RS1 builds load the windowsservercore image from a tar rather than
2038
+	// a .WIM file, and the tar layer has the default CMD set (same as the Linux ubuntu image),
2039
+	// where-as the TP5 .WIM had a blank CMD. Hence this test is not applicable on RS1 or later
2040
+	// builds as the command won't fail as it's not blank
2041
+	if daemonPlatform == "windows" && windowsDaemonKV >= 14375 {
2042
+		c.Skip("Not applicable on Windows RS1 or later builds")
2043
+	}
2044
+
2037 2045
 	tmpDir, err := ioutil.TempDir("", "TestRunCidFile")
2038 2046
 	if err != nil {
2039 2047
 		c.Fatal(err)