diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-09-22 10:08:28 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-09-22 16:55:37 -0400 |
commit | a277b7eb0bedd24eecede1c88e58fce2dea89991 (patch) | |
tree | 6c2441ebfc39e040488de4c46b7c3a25f978b345 /test/e2e/restart_test.go | |
parent | a8917996c43a5149eba0220cebc080148908cd4a (diff) | |
download | podman-a277b7eb0bedd24eecede1c88e58fce2dea89991.tar.gz podman-a277b7eb0bedd24eecede1c88e58fce2dea89991.tar.bz2 podman-a277b7eb0bedd24eecede1c88e58fce2dea89991.zip |
Examine all SkipIfRemote functions
Remove ones that are not needed.
Document those that should be there.
Document those that should be fixed.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/e2e/restart_test.go')
-rw-r--r-- | test/e2e/restart_test.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/e2e/restart_test.go b/test/e2e/restart_test.go index 4348eae3b..789b4dee5 100644 --- a/test/e2e/restart_test.go +++ b/test/e2e/restart_test.go @@ -122,7 +122,6 @@ var _ = Describe("Podman restart", func() { }) It("Podman restart the latest container", func() { - SkipIfRemote() _, exitCode, _ := podmanTest.RunLsContainer("test1") Expect(exitCode).To(Equal(0)) @@ -132,7 +131,11 @@ var _ = Describe("Podman restart", func() { startTime := podmanTest.Podman([]string{"inspect", "--format='{{.State.StartedAt}}'", "test1", "test2"}) startTime.WaitWithDefaultTimeout() - session := podmanTest.Podman([]string{"restart", "-l"}) + cid := "-l" + if IsRemote() { + cid = "test2" + } + session := podmanTest.Podman([]string{"restart", cid}) session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(0)) restartTime := podmanTest.Podman([]string{"inspect", "--format='{{.State.StartedAt}}'", "test1", "test2"}) |