diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-16 09:46:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 09:46:28 -0500 |
commit | 58a4793bec30058f648dcd1248da333a7bb6d47c (patch) | |
tree | de220666eba07d3183e95299bb1485ffe5f383d3 /test/e2e/stop_test.go | |
parent | aadb16da383a91489821969247bced2b34d885e7 (diff) | |
parent | 4a9bd7a18f2db7db103a94287ef34cbd1be1626b (diff) | |
download | podman-58a4793bec30058f648dcd1248da333a7bb6d47c.tar.gz podman-58a4793bec30058f648dcd1248da333a7bb6d47c.tar.bz2 podman-58a4793bec30058f648dcd1248da333a7bb6d47c.zip |
Merge pull request #9396 from rhatdan/stop
When stopping a container, print rawInput
Diffstat (limited to 'test/e2e/stop_test.go')
-rw-r--r-- | test/e2e/stop_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/e2e/stop_test.go b/test/e2e/stop_test.go index 750d38ffb..337fd651d 100644 --- a/test/e2e/stop_test.go +++ b/test/e2e/stop_test.go @@ -149,13 +149,12 @@ var _ = Describe("Podman stop", func() { session := podmanTest.RunTopContainer("test4") session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - cid1 := session.OutputToString() session = podmanTest.Podman([]string{"stop", "--time", "1", "test4"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) output := session.OutputToString() - Expect(output).To(ContainSubstring(cid1)) + Expect(output).To(ContainSubstring("test4")) finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() @@ -167,14 +166,13 @@ var _ = Describe("Podman stop", func() { session := podmanTest.Podman([]string{"run", "-d", "--name", "test5", ALPINE, "sleep", "100"}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) - cid1 := session.OutputToString() session = podmanTest.Podman([]string{"stop", "--timeout", "1", "test5"}) // Without timeout container stops in 10 seconds // If not stopped in 5 seconds, then --timeout did not work session.Wait(5) Expect(session.ExitCode()).To(Equal(0)) output := session.OutputToString() - Expect(output).To(ContainSubstring(cid1)) + Expect(output).To(ContainSubstring("test5")) finalCtrs := podmanTest.Podman([]string{"ps", "-q"}) finalCtrs.WaitWithDefaultTimeout() |