From 82434d00d9fe1a1e8469cb9ec3ca7cecccbbb0da Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Thu, 29 Jan 2026 19:09:26 +0530 Subject: [PATCH] test/e2e: fix "podman load localhost registry from dir" test When loading from an OCI directory without an explicit image name, the image is now stored by digest instead of using the path as the name. Update the test to verify the load succeeded and output contains the sha256 digest, rather than checking for a specific image name. This aligns with the behavior change from containers/common and fixes the rootful localintegration test failure. (partial cherry-pick from commit e66c04c1f7ae7851d94b5991209dc0d9251e3446) Signed-off-by: Lokesh Mandvekar --- test/e2e/load_test.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/e2e/load_test.go b/test/e2e/load_test.go index 1e3f9089af..0e45ea22d2 100644 --- a/test/e2e/load_test.go +++ b/test/e2e/load_test.go @@ -268,11 +268,7 @@ var _ = Describe("Podman load", func() { load := podmanTest.Podman([]string{"load", "-i", outfile}) load.WaitWithDefaultTimeout() Expect(load).Should(Exit(0)) - - result := podmanTest.Podman([]string{"images", "load:latest"}) - result.WaitWithDefaultTimeout() - Expect(result.OutputToString()).To(Not(ContainSubstring("docker"))) - Expect(result.OutputToString()).To(ContainSubstring("localhost")) + Expect(load.OutputToString()).To(ContainSubstring("Loaded image: sha256:")) }) It("podman load xz compressed image", func() {