summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-16 16:10:02 -0400
committerGitHub <noreply@github.com>2020-10-16 16:10:02 -0400
commit9d5f28ba9e437204127e943f22e89c466dedea95 (patch)
tree028778884ef7248d78b9bda3be9d34afd0a98a8a /test/e2e
parent9f98b3447c7a1c34d328a387993722e4e7113cd2 (diff)
parent97fec292123939d2cb505c26c327726163ff1867 (diff)
downloadpodman-9d5f28ba9e437204127e943f22e89c466dedea95.tar.gz
podman-9d5f28ba9e437204127e943f22e89c466dedea95.tar.bz2
podman-9d5f28ba9e437204127e943f22e89c466dedea95.zip
Merge pull request #8039 from zhangguanzhang/runlabel-panic
Fix panic when runlabel is missing
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/runlabel_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/e2e/runlabel_test.go b/test/e2e/runlabel_test.go
index 81a746b86..7c0b8bc9b 100644
--- a/test/e2e/runlabel_test.go
+++ b/test/e2e/runlabel_test.go
@@ -88,12 +88,15 @@ var _ = Describe("podman container runlabel", func() {
result := podmanTest.Podman([]string{"container", "runlabel", "RUN", ALPINE})
result.WaitWithDefaultTimeout()
Expect(result).To(ExitWithError())
+ // should not panic when label missing the value or don't have the label
+ Expect(result.LineInOutputContains("panic")).NotTo(BeTrue())
})
It("podman container runlabel bogus label in remote image should result in non-zero exit", func() {
result := podmanTest.Podman([]string{"container", "runlabel", "RUN", "docker.io/library/ubuntu:latest"})
result.WaitWithDefaultTimeout()
Expect(result).To(ExitWithError())
-
+ // should not panic when label missing the value or don't have the label
+ Expect(result.LineInOutputContains("panic")).NotTo(BeTrue())
})
It("podman container runlabel global options", func() {