diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-06-03 19:27:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 19:27:54 +0200 |
commit | df0141dc200fc55f750bd3d878b98d4af4110e03 (patch) | |
tree | 6f78703e35a66e96d696a917f7946956feba67bd /test/e2e/inspect_test.go | |
parent | 9bd48a64bbe63c0b8da4dfd3841f4d822fa1d5fb (diff) | |
parent | 4b37d4d5af50b67742e5f3097075e7493488d91a (diff) | |
download | podman-df0141dc200fc55f750bd3d878b98d4af4110e03.tar.gz podman-df0141dc200fc55f750bd3d878b98d4af4110e03.tar.bz2 podman-df0141dc200fc55f750bd3d878b98d4af4110e03.zip |
Merge pull request #6473 from mheon/fix_inspect_segfault
Fix a segfault in `podman inspect -l` w/ no containers
Diffstat (limited to 'test/e2e/inspect_test.go')
-rw-r--r-- | test/e2e/inspect_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/inspect_test.go b/test/e2e/inspect_test.go index 77cfe4fd3..786f8fbb0 100644 --- a/test/e2e/inspect_test.go +++ b/test/e2e/inspect_test.go @@ -171,4 +171,12 @@ var _ = Describe("Podman inspect", func() { Expect(imageData[0].HealthCheck.Interval).To(BeNumerically("==", 60000000000)) Expect(imageData[0].HealthCheck.Test).To(Equal([]string{"CMD-SHELL", "curl -f http://localhost/ || exit 1"})) }) + + It("podman inspect --latest with no container fails", func() { + SkipIfRemote() + + session := podmanTest.Podman([]string{"inspect", "--latest"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Not(Equal(0))) + }) }) |