From 49fe03c626dc10781f2d3241a489c95515af9db4 Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Wed, 4 Jul 2018 14:10:06 +0200 Subject: urfave/cli: fix parsing of short opts Vendor an updated version of urfave/cli to fix the parsing of short options. Until the fix is merged upstream, vendor the code from github.com/vrothberg/cli containing both, the latest urfave/cli and the bug fix. Fixes: #714 Signed-off-by: Valentin Rothberg Closes: #1046 Approved by: rhatdan --- test/e2e/run_test.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index ef88b6791..cb021d297 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -45,6 +45,15 @@ var _ = Describe("Podman run", func() { Expect(session.ExitCode()).To(Equal(0)) }) + It("podman run a container based on local image with short options and args", func() { + // regression test for #714 + session := podmanTest.Podman([]string{"run", ALPINE, "find", "/", "-name", "etc"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + match, _ := session.GrepString("/etc") + Expect(match).Should(BeTrue()) + }) + It("podman run a container based on remote image", func() { session := podmanTest.Podman([]string{"run", "-dt", BB_GLIBC, "ls"}) session.WaitWithDefaultTimeout() -- cgit v1.2.3-54-g00ecf