summaryrefslogtreecommitdiff
path: root/test/e2e/ps_test.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-07-28 11:11:31 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-28 22:51:08 +0000
commit433cbd52543dccdad9806b8d44fd5d054ed559f1 (patch)
treedd7e68b113506ce6f20fc75ba2f80c3d43fec5ab /test/e2e/ps_test.go
parenta4a667eac9ad288b927696effa30a084b0b39787 (diff)
downloadpodman-433cbd52543dccdad9806b8d44fd5d054ed559f1.tar.gz
podman-433cbd52543dccdad9806b8d44fd5d054ed559f1.tar.bz2
podman-433cbd52543dccdad9806b8d44fd5d054ed559f1.zip
Show duration for each ginkgo test and test speed improvements
Because our tests are getting so long, we want to be able to audit which tests are taking the longest to complete. This may indicate a bad test, bad CI, bad code, etc and therefore should be auditable. Also, make speed improvements to tests by making sure we only unpack caches images that actually get used. Signed-off-by: baude <bbaude@redhat.com> Closes: #1178 Approved by: mheon
Diffstat (limited to 'test/e2e/ps_test.go')
-rw-r--r--test/e2e/ps_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/e2e/ps_test.go b/test/e2e/ps_test.go
index b3d58af77..7e4ec8e38 100644
--- a/test/e2e/ps_test.go
+++ b/test/e2e/ps_test.go
@@ -29,7 +29,9 @@ var _ = Describe("Podman ps", func() {
AfterEach(func() {
podmanTest.Cleanup()
-
+ f := CurrentGinkgoTestDescription()
+ timedResult := fmt.Sprintf("Test: %s completed in %f seconds", f.TestText, f.Duration.Seconds())
+ GinkgoWriter.Write([]byte(timedResult))
})
It("podman ps no containers", func() {
@@ -232,7 +234,7 @@ var _ = Describe("Podman ps", func() {
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
- podmanTest.RestoreArtifact(nginx)
+ podmanTest.RestoreArtifact(fedoraMinimal)
session = podmanTest.Podman([]string{"run", "-d", fedoraMinimal, "pwd"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))