From d176e9f781148459fd56fc39cadcc229e565252b Mon Sep 17 00:00:00 2001
From: Matthew Heon <matthew.heon@gmail.com>
Date: Wed, 14 Mar 2018 15:59:03 -0400
Subject: Fix broken 'podman start' test

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #482
Approved by: baude
---
 test/e2e/start_test.go | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'test/e2e')

diff --git a/test/e2e/start_test.go b/test/e2e/start_test.go
index 66f993bc7..6282d6c84 100644
--- a/test/e2e/start_test.go
+++ b/test/e2e/start_test.go
@@ -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()
-- 
cgit v1.2.3-54-g00ecf