Signed-off-by: John Howard <jhoward@microsoft.com>
| ... | ... |
@@ -17,6 +17,10 @@ import ( |
| 17 | 17 |
) |
| 18 | 18 |
|
| 19 | 19 |
func (s *DockerSuite) TestPsListContainersBase(c *check.C) {
|
| 20 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 21 |
+ if daemonPlatform == "windows" {
|
|
| 22 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 23 |
+ } |
|
| 20 | 24 |
out, _ := runSleepingContainer(c, "-d") |
| 21 | 25 |
firstID := strings.TrimSpace(out) |
| 22 | 26 |
|
| ... | ... |
@@ -119,6 +123,11 @@ func (s *DockerSuite) TestPsListContainersBase(c *check.C) {
|
| 119 | 119 |
|
| 120 | 120 |
// FIXME remove this for 1.12 as --since and --before are deprecated |
| 121 | 121 |
func (s *DockerSuite) TestPsListContainersDeprecatedSinceAndBefore(c *check.C) {
|
| 122 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 123 |
+ if daemonPlatform == "windows" {
|
|
| 124 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 125 |
+ } |
|
| 126 |
+ |
|
| 122 | 127 |
out, _ := runSleepingContainer(c, "-d") |
| 123 | 128 |
firstID := strings.TrimSpace(out) |
| 124 | 129 |
|
| ... | ... |
@@ -214,6 +223,11 @@ func assertContainerList(out string, expected []string) bool {
|
| 214 | 214 |
} |
| 215 | 215 |
|
| 216 | 216 |
func (s *DockerSuite) TestPsListContainersSize(c *check.C) {
|
| 217 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 218 |
+ if daemonPlatform == "windows" {
|
|
| 219 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 220 |
+ } |
|
| 221 |
+ |
|
| 217 | 222 |
// Problematic on Windows as it doesn't report the size correctly @swernli |
| 218 | 223 |
testRequires(c, DaemonIsLinux) |
| 219 | 224 |
dockerCmd(c, "run", "-d", "busybox") |
| ... | ... |
@@ -256,6 +270,11 @@ func (s *DockerSuite) TestPsListContainersSize(c *check.C) {
|
| 256 | 256 |
} |
| 257 | 257 |
|
| 258 | 258 |
func (s *DockerSuite) TestPsListContainersFilterStatus(c *check.C) {
|
| 259 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 260 |
+ if daemonPlatform == "windows" {
|
|
| 261 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 262 |
+ } |
|
| 263 |
+ |
|
| 259 | 264 |
// start exited container |
| 260 | 265 |
out, _ := dockerCmd(c, "run", "-d", "busybox") |
| 261 | 266 |
firstID := strings.TrimSpace(out) |
| ... | ... |
@@ -295,6 +314,11 @@ func (s *DockerSuite) TestPsListContainersFilterStatus(c *check.C) {
|
| 295 | 295 |
} |
| 296 | 296 |
|
| 297 | 297 |
func (s *DockerSuite) TestPsListContainersFilterID(c *check.C) {
|
| 298 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 299 |
+ if daemonPlatform == "windows" {
|
|
| 300 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 301 |
+ } |
|
| 302 |
+ |
|
| 298 | 303 |
// start container |
| 299 | 304 |
out, _ := dockerCmd(c, "run", "-d", "busybox") |
| 300 | 305 |
firstID := strings.TrimSpace(out) |
| ... | ... |
@@ -310,6 +334,11 @@ func (s *DockerSuite) TestPsListContainersFilterID(c *check.C) {
|
| 310 | 310 |
} |
| 311 | 311 |
|
| 312 | 312 |
func (s *DockerSuite) TestPsListContainersFilterName(c *check.C) {
|
| 313 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 314 |
+ if daemonPlatform == "windows" {
|
|
| 315 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 316 |
+ } |
|
| 317 |
+ |
|
| 313 | 318 |
// start container |
| 314 | 319 |
dockerCmd(c, "run", "--name=a_name_to_match", "busybox") |
| 315 | 320 |
id, err := getIDByName("a_name_to_match")
|
| ... | ... |
@@ -333,6 +362,11 @@ func (s *DockerSuite) TestPsListContainersFilterName(c *check.C) {
|
| 333 | 333 |
// - Run containers for each of those image (busybox, images_ps_filter_test1, images_ps_filter_test2) |
| 334 | 334 |
// - Filter them out :P |
| 335 | 335 |
func (s *DockerSuite) TestPsListContainersFilterAncestorImage(c *check.C) {
|
| 336 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 337 |
+ if daemonPlatform == "windows" {
|
|
| 338 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 339 |
+ } |
|
| 340 |
+ |
|
| 336 | 341 |
// Build images |
| 337 | 342 |
imageName1 := "images_ps_filter_test1" |
| 338 | 343 |
imageID1, err := buildImage(imageName1, |
| ... | ... |
@@ -434,6 +468,11 @@ func checkPsAncestorFilterOutput(c *check.C, out string, filterName string, expe |
| 434 | 434 |
} |
| 435 | 435 |
|
| 436 | 436 |
func (s *DockerSuite) TestPsListContainersFilterLabel(c *check.C) {
|
| 437 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 438 |
+ if daemonPlatform == "windows" {
|
|
| 439 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 440 |
+ } |
|
| 441 |
+ |
|
| 437 | 442 |
// start container |
| 438 | 443 |
dockerCmd(c, "run", "--name=first", "-l", "match=me", "-l", "second=tag", "busybox") |
| 439 | 444 |
firstID, err := getIDByName("first")
|
| ... | ... |
@@ -473,6 +512,11 @@ func (s *DockerSuite) TestPsListContainersFilterLabel(c *check.C) {
|
| 473 | 473 |
} |
| 474 | 474 |
|
| 475 | 475 |
func (s *DockerSuite) TestPsListContainersFilterExited(c *check.C) {
|
| 476 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 477 |
+ if daemonPlatform == "windows" {
|
|
| 478 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 479 |
+ } |
|
| 480 |
+ |
|
| 476 | 481 |
runSleepingContainer(c, "--name=sleep") |
| 477 | 482 |
|
| 478 | 483 |
dockerCmd(c, "run", "--name", "zero1", "busybox", "true") |
| ... | ... |
@@ -592,6 +636,11 @@ func (s *DockerSuite) TestPsWithSize(c *check.C) {
|
| 592 | 592 |
} |
| 593 | 593 |
|
| 594 | 594 |
func (s *DockerSuite) TestPsListContainersFilterCreated(c *check.C) {
|
| 595 |
+ // TODO Windows: Figure out why TestPsListContainers* are flakey |
|
| 596 |
+ if daemonPlatform == "windows" {
|
|
| 597 |
+ c.Skip("Flaky on windowsTP4")
|
|
| 598 |
+ } |
|
| 599 |
+ |
|
| 595 | 600 |
// create a container |
| 596 | 601 |
out, _ := dockerCmd(c, "create", "busybox") |
| 597 | 602 |
cID := strings.TrimSpace(out) |