Skip to content

Commit 6aa70f0

Browse files
nalindTomSweeneyRedHat
authored andcommitted
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 <[email protected]>
1 parent e6f812c commit 6aa70f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/diff_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,13 @@ RUN touch %s`, ALPINE, imagefile)
150150
session = podmanTest.Podman([]string{"diff", name})
151151
session.WaitWithDefaultTimeout()
152152
Expect(session).Should(ExitCleanly())
153-
Expect(session.OutputToStringArray()).To(HaveLen(2))
153+
Expect(session.OutputToStringArray()).To(HaveLen(1))
154154
Expect(session.OutputToString()).To(ContainSubstring(imagefile))
155155

156156
session = podmanTest.Podman([]string{"image", "diff", name})
157157
session.WaitWithDefaultTimeout()
158158
Expect(session).Should(ExitCleanly())
159-
Expect(session.OutputToStringArray()).To(HaveLen(2))
159+
Expect(session.OutputToStringArray()).To(HaveLen(1))
160160
Expect(session.OutputToString()).To(ContainSubstring(imagefile))
161161

162162
// container diff has to show the container

0 commit comments

Comments
 (0)