Skip to content

Commit

Permalink
DO NOT MERGE: Add debug logging
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <[email protected]>
  • Loading branch information
mtrmac committed Oct 22, 2024
1 parent 8f6eaba commit 842c2bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/e2e/images_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,10 @@ WORKDIR /test
// the additional image store we're using. Pull the same image by another name to
// copy an entry for the image into read-write storage so that the name can be
// attached to it.
session := podmanTest.Podman([]string{"pull", "-q", ALPINELISTTAG})
session := podmanTest.Podman([]string{"--log-level=debug", "pull", "-q", ALPINELISTTAG})
session.WaitWithDefaultTimeout()
Expect(session).Should(ExitCleanly())
GinkgoWriter.Printf("=== DEBUG pull log\n%s=== END pull log", session.Err.Contents())
digestPullAndList(false)

// Now remove all names from the read-write image record, re-pull by digest and
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,10 @@ var _ = Describe("Podman pull", func() {
It("podman pull by tag (image list)", func() {
SkipIfRemote("podman-remote does not support disabling external imagestore")

session := podmanTest.Podman([]string{"pull", "-q", "--arch=arm64", ALPINELISTTAG})
session := podmanTest.Podman([]string{"--log-level=debug", "pull", "-q", "--arch=arm64", ALPINELISTTAG})
session.WaitWithDefaultTimeout()
Expect(session).Should(ExitCleanly())
GinkgoWriter.Printf("=== DEBUG pull log\n%s=== END pull log", session.Err.Contents())
// inspect using the tag we used for pulling
session = podmanTest.PodmanNoCache([]string{"inspect", "--format", "{{.RepoTags}}", ALPINELISTTAG})
session.WaitWithDefaultTimeout()
Expand Down

0 comments on commit 842c2bc

Please sign in to comment.