Skip to content

Commit

Permalink
Merge pull request containers#12141 from kprav33n/help-doc
Browse files Browse the repository at this point in the history
Fix help message case for `podman version`
  • Loading branch information
openshift-merge-robot authored Oct 30, 2021
2 parents 09efcd4 + e69eae6 commit 7cd317e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/system/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var (
versionCommand = &cobra.Command{
Use: "version [options]",
Args: validate.NoArgs,
Short: "Display the Podman Version Information",
Short: "Display the Podman version information",
RunE: version,
ValidArgsFunction: completion.AutocompleteNone,
}
Expand Down
10 changes: 9 additions & 1 deletion test/e2e/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ var _ = Describe("Podman version", func() {
f := CurrentGinkgoTestDescription()
processTestResult(f)
podmanTest.SeedImages()

})

It("podman version", func() {
Expand Down Expand Up @@ -96,4 +95,13 @@ var _ = Describe("Podman version", func() {
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
})

It("podman help", func() {
session := podmanTest.Podman([]string{"help"})
session.WaitWithDefaultTimeout()
Expect(session).Should(Exit(0))
Expect(session.Out.Contents()).Should(
ContainSubstring("Display the Podman version information"),
)
})
})

0 comments on commit 7cd317e

Please sign in to comment.