From 6aa70f07c2b7f2eabd2a9c1dfa30fbdd32e76a4b Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 23 Jul 2025 15:28:01 -0400 Subject: [PATCH] Update "podman diff container and image with same name" e2e test Update the "podman diff container and image with same name" e2e test to not expect a built image to include /etc, since newer buildah won't include an item in a layer if it was only created in a rootfs in order to have something mounted onto it while processing a RUN instruction. A few exceptions are still made for the sake of conformance tests. Signed-off-by: Nalin Dahyabhai --- test/e2e/diff_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/diff_test.go b/test/e2e/diff_test.go index a9c20fadc8..5df6e5ea98 100644 --- a/test/e2e/diff_test.go +++ b/test/e2e/diff_test.go @@ -150,13 +150,13 @@ RUN touch %s`, ALPINE, imagefile) session = podmanTest.Podman([]string{"diff", name}) session.WaitWithDefaultTimeout() Expect(session).Should(ExitCleanly()) - Expect(session.OutputToStringArray()).To(HaveLen(2)) + Expect(session.OutputToStringArray()).To(HaveLen(1)) Expect(session.OutputToString()).To(ContainSubstring(imagefile)) session = podmanTest.Podman([]string{"image", "diff", name}) session.WaitWithDefaultTimeout() Expect(session).Should(ExitCleanly()) - Expect(session.OutputToStringArray()).To(HaveLen(2)) + Expect(session.OutputToStringArray()).To(HaveLen(1)) Expect(session.OutputToString()).To(ContainSubstring(imagefile)) // container diff has to show the container