aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2020-06-02 17:10:57 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-06-02 17:22:00 -0400
commit4b37d4d5af50b67742e5f3097075e7493488d91a (patch)
treecd3de69116973b3e2206c72853c802339b0e4423 /test
parentc4ccd7cbc1509bab6183c47f740cbf2cc4ee0424 (diff)
downloadpodman-4b37d4d5af50b67742e5f3097075e7493488d91a.tar.gz
podman-4b37d4d5af50b67742e5f3097075e7493488d91a.tar.bz2
podman-4b37d4d5af50b67742e5f3097075e7493488d91a.zip
Fix a segfault in `podman inspect -l` w/ no containers
We also need to rework container/image inspect to be separate, but that can happen in another PR. Fixes #6472 Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/inspect_test.go8
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)))
+ })
})