Skip to content

Commit

Permalink
e2e: refactor and document serialization
Browse files Browse the repository at this point in the history
Followup to containers#18578: move Serial to Describe(), in case new
tests get added to this module. And, explain the reasoning.

Signed-off-by: Ed Santiago <[email protected]>
  • Loading branch information
edsantiago committed May 16, 2023
1 parent e2d1ad1 commit 4bed2c2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/e2e/image_sign_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import (
. "github.com/onsi/gomega/gexec"
)

var _ = Describe("Podman image sign", func() {
// Each of these tests runs with a different GNUPGHOME; gpg-agent blows up
// if these run in parallel. We use Serial, not Ordered, because tests in
// trust_test.go also rely on gpg and can't coexist with us.
var _ = Describe("Podman image sign", Serial, func() {
var origGNUPGHOME string

BeforeEach(func() {
Expand All @@ -36,7 +39,7 @@ var _ = Describe("Podman image sign", func() {
os.Setenv("GNUPGHOME", origGNUPGHOME)
})

It("podman sign image", Serial, func() {
It("podman sign image", func() {
cmd := exec.Command("gpg", "--import", "sign/secret-key.asc")
cmd.Stdout = GinkgoWriter
cmd.Stderr = GinkgoWriter
Expand All @@ -52,7 +55,7 @@ var _ = Describe("Podman image sign", func() {
Expect(err).ToNot(HaveOccurred())
})

It("podman sign --all multi-arch image", Serial, func() {
It("podman sign --all multi-arch image", func() {
cmd := exec.Command("gpg", "--import", "sign/secret-key.asc")
cmd.Stdout = GinkgoWriter
cmd.Stderr = GinkgoWriter
Expand Down

0 comments on commit 4bed2c2

Please sign in to comment.