diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-10-30 08:56:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 08:56:45 +0000 |
commit | 7cd317e9c35aa9f4776ee491bdd943c6e2ce55d3 (patch) | |
tree | efd57b944b2a64ba330d2f070518e7c0fa12ea2e | |
parent | 09efcd48a86fac761fe73fda9e77af668515ddcc (diff) | |
parent | e69eae6458737e73e9a9b61297f1f911f0fb6599 (diff) | |
download | podman-7cd317e9c35aa9f4776ee491bdd943c6e2ce55d3.tar.gz podman-7cd317e9c35aa9f4776ee491bdd943c6e2ce55d3.tar.bz2 podman-7cd317e9c35aa9f4776ee491bdd943c6e2ce55d3.zip |
Merge pull request #12141 from kprav33n/help-doc
Fix help message case for `podman version`
-rw-r--r-- | cmd/podman/system/version.go | 2 | ||||
-rw-r--r-- | test/e2e/version_test.go | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cmd/podman/system/version.go b/cmd/podman/system/version.go index 3ddd19bae..3443978d6 100644 --- a/cmd/podman/system/version.go +++ b/cmd/podman/system/version.go @@ -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, } diff --git a/test/e2e/version_test.go b/test/e2e/version_test.go index 75986e671..9398248b8 100644 --- a/test/e2e/version_test.go +++ b/test/e2e/version_test.go @@ -31,7 +31,6 @@ var _ = Describe("Podman version", func() { f := CurrentGinkgoTestDescription() processTestResult(f) podmanTest.SeedImages() - }) It("podman version", func() { @@ -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"), + ) + }) }) |