@@ -4,7 +4,6 @@ package integration
4
4
5
5
import (
6
6
"fmt"
7
- "io"
8
7
"os"
9
8
"path/filepath"
10
9
"runtime"
@@ -668,33 +667,13 @@ var _ = Describe("Podman pull", func() {
668
667
669
668
podmanTest .AddImageToRWStore (ALPINE )
670
669
671
- success := false
672
- registryArgs := []string {"run" , "-d" , "--name" , "registry" , "-p" , "5012:5000" }
673
670
if isRootless () {
674
671
err := podmanTest .RestoreArtifact (REGISTRY_IMAGE )
675
672
Expect (err ).ToNot (HaveOccurred ())
676
-
677
- // Debug code for https://github.com/containers/podman/issues/24219
678
- logFile := filepath .Join (podmanTest .TempDir , "pasta.log" )
679
- registryArgs = append (registryArgs , "--network" , "pasta:--trace,--log-file," + logFile )
680
- defer func () {
681
- if success {
682
- // only print the log on errors otherwise it will clutter CI logs way to much
683
- return
684
- }
685
-
686
- f , err := os .Open (logFile )
687
- Expect (err ).ToNot (HaveOccurred ())
688
- defer f .Close ()
689
- GinkgoWriter .Println ("pasta trace log:" )
690
- _ , err = io .Copy (GinkgoWriter , f )
691
- Expect (err ).ToNot (HaveOccurred ())
692
- }()
693
673
}
694
- registryArgs = append (registryArgs , REGISTRY_IMAGE , "/entrypoint.sh" , "/etc/docker/registry/config.yml" )
695
674
lock := GetPortLock ("5012" )
696
675
defer lock .Unlock ()
697
- session := podmanTest .Podman (registryArgs )
676
+ session := podmanTest .Podman ([] string { "run" , "-d" , "--name" , "registry" , "-p" , "5012:5000" , REGISTRY_IMAGE , "/entrypoint.sh" , "/etc/docker/registry/config.yml" } )
698
677
session .WaitWithDefaultTimeout ()
699
678
Expect (session ).Should (ExitCleanly ())
700
679
@@ -707,8 +686,6 @@ var _ = Describe("Podman pull", func() {
707
686
session = decryptionTestHelper (imgPath )
708
687
709
688
Expect (session .LineInOutputContainsTag (imgPath , "latest" )).To (BeTrue ())
710
-
711
- success = true
712
689
})
713
690
})
714
691
0 commit comments