aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorValentin Rothberg <vrothberg@suse.com>2018-07-04 14:10:06 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-05 10:43:17 +0000
commit49fe03c626dc10781f2d3241a489c95515af9db4 (patch)
tree692558deab5e7cec0d7855f954b4842470330541 /test
parentf2462ca59e4a48b9f23e3c8f2acaa8bce60d588d (diff)
downloadpodman-49fe03c626dc10781f2d3241a489c95515af9db4.tar.gz
podman-49fe03c626dc10781f2d3241a489c95515af9db4.tar.bz2
podman-49fe03c626dc10781f2d3241a489c95515af9db4.zip
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 <vrothberg@suse.com> Closes: #1046 Approved by: rhatdan
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_test.go9
1 files changed, 9 insertions, 0 deletions
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()