mirror of
https://github.com/containers/podman.git
synced 2025-09-27 08:43:52 +08:00
ginkgo status improvements
a series of improvements to our ginkgo test framework so we can get better ideas of whats going on when run in CI Signed-off-by: baude <bbaude@redhat.com>
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
package integration
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
@ -23,14 +22,15 @@ var _ = Describe("Podman inspect", func() {
|
||||
os.Exit(1)
|
||||
}
|
||||
podmanTest = PodmanTestCreate(tempdir)
|
||||
podmanTest.Setup()
|
||||
podmanTest.RestoreAllArtifacts()
|
||||
})
|
||||
|
||||
AfterEach(func() {
|
||||
podmanTest.Cleanup()
|
||||
f := CurrentGinkgoTestDescription()
|
||||
timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
|
||||
GinkgoWriter.Write([]byte(timedResult))
|
||||
processTestResult(f)
|
||||
|
||||
})
|
||||
|
||||
It("podman inspect alpine image", func() {
|
||||
@ -57,7 +57,7 @@ var _ = Describe("Podman inspect", func() {
|
||||
result := podmanTest.Podman([]string{"images", "-q", "--no-trunc", ALPINE})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
Expect(strings.Trim(result.OutputToString(), "sha256:")).To(Equal(session.OutputToString()))
|
||||
Expect(strings.Contains(result.OutputToString(), session.OutputToString()))
|
||||
})
|
||||
|
||||
It("podman inspect specified type", func() {
|
||||
|
Reference in New Issue
Block a user