mirror of
https://github.com/containers/podman.git
synced 2025-06-04 21:55:24 +08:00
Fix broken 'podman start' test
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #482 Approved by: baude
This commit is contained in:
@ -56,7 +56,7 @@ var _ = Describe("Podman start", func() {
|
||||
session := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
cid1 := session.OutputToString()
|
||||
session2 := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
|
||||
session2 := podmanTest.Podman([]string{"create", "-d", "--name", "foobar100", ALPINE, "ls"})
|
||||
session2.WaitWithDefaultTimeout()
|
||||
cid2 := session2.OutputToString()
|
||||
session = podmanTest.Podman([]string{"start", cid1, cid2})
|
||||
@ -64,6 +64,15 @@ var _ = Describe("Podman start", func() {
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman start multiple containers with bogus", func() {
|
||||
session := podmanTest.Podman([]string{"create", "-d", "--name", "foobar99", ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
cid1 := session.OutputToString()
|
||||
session = podmanTest.Podman([]string{"start", cid1, "doesnotexist"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(125))
|
||||
})
|
||||
|
||||
It("podman multiple containers -- attach should fail", func() {
|
||||
session := podmanTest.Podman([]string{"create", "--name", "foobar1", ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
|
Reference in New Issue
Block a user