mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
e2e: ExitCleanly(): the final fron^Wcommit
Final push on RUN-1907. Commit 1 of 2. This is the final set of test/e2e/*_test.go files to be converted from Exit(0) to ExitCleanly(). This commit is a mix of automated string-replace with manual revert-back: tests that did not pass with ExitCleanly() are reverted back to Exit(0), so they will not show up as diffs in this commit. When possible, I address those in my next commit. My goal was to make this commit a don't-bother-reviewing one that will also pass tests (so as not to break git-bisect). The next commit is the important one to review. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/containers/podman/v4/pkg/systemd/parser"
|
||||
. "github.com/containers/podman/v4/test/utils"
|
||||
"github.com/containers/podman/v4/version"
|
||||
"github.com/mattn/go-shellwords"
|
||||
|
||||
@ -434,7 +435,7 @@ var _ = Describe("quadlet system generator", func() {
|
||||
It("Should print correct version", func() {
|
||||
session := podmanTest.Quadlet([]string{"-version"}, "/something")
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(Exit(0))
|
||||
Expect(session).Should(ExitCleanly())
|
||||
Expect(session.OutputToString()).To(Equal(version.Version.String()))
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user