From 44868919e6fc4e9cebce5d7a8c4c21a9317423d6 Mon Sep 17 00:00:00 2001 From: Ed Santiago Date: Wed, 19 Apr 2023 16:08:57 -0600 Subject: [PATCH] Fix more "podman-default-kube-network" flakes ...in "built using Dockerfile" test and "play kube fail with custom selinux label" test. The latter, since it's in a test file with lots of other kube tests, I just put into BeforeEach(). References: Issue #17946, PR #18085 Signed-off-by: Ed Santiago --- test/e2e/play_build_test.go | 1 + test/e2e/play_kube_test.go | 1 + 2 files changed, 2 insertions(+) diff --git a/test/e2e/play_build_test.go b/test/e2e/play_build_test.go index 662727dd0a..0ae24e87d9 100644 --- a/test/e2e/play_build_test.go +++ b/test/e2e/play_build_test.go @@ -85,6 +85,7 @@ LABEL marge=mom ` It("Check that image is built using Dockerfile", func() { + useCustomNetworkDir(podmanTest, tempdir) // Setup yamlDir := filepath.Join(tempdir, RandomString(12)) err := os.Mkdir(yamlDir, 0755) diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 1138c29dd2..dab260f200 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -1868,6 +1868,7 @@ var _ = Describe("Podman play kube", func() { } podmanTest = PodmanTestCreate(tempdir) podmanTest.Setup() + useCustomNetworkDir(podmanTest, tempdir) kubeYaml = filepath.Join(podmanTest.TempDir, "kube.yaml") })