mirror of
https://github.com/containers/podman.git
synced 2025-10-19 20:23:08 +08:00

The regex match would return a horrible error message and is way more complicated then it should be. Simply check that .exe is not part of the output. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
19 lines
532 B
Go
19 lines
532 B
Go
package e2e_test
|
|
|
|
import (
|
|
. "github.com/onsi/ginkgo/v2"
|
|
. "github.com/onsi/gomega"
|
|
. "github.com/onsi/gomega/gexec"
|
|
)
|
|
|
|
var _ = Describe("podman help", func() {
|
|
It("podman usage base command is podman or podman-remote, without extension ", func() {
|
|
helpSession, err := mb.setCmd(new(helpMachine)).run()
|
|
Expect(err).NotTo(HaveOccurred())
|
|
Expect(helpSession).Should(Exit(0))
|
|
|
|
// Verify `.exe` suffix doesn't present in the usage command string
|
|
Expect(helpSession.outputToString()).ToNot(ContainSubstring(".exe"))
|
|
})
|
|
})
|