mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Merge pull request #16475 from Darth-Mera/restartsec-fix
Add restart-sec for container service files
This commit is contained in:
@@ -387,6 +387,15 @@ var _ = Describe("Podman generate systemd", func() {
|
||||
|
||||
// Grepping the output (in addition to unit tests)
|
||||
Expect(session.OutputToString()).To(ContainSubstring("RestartSec=15"))
|
||||
|
||||
n = podmanTest.Podman([]string{"create", "--name", "foocontainer", "alpine", "top"})
|
||||
n.WaitWithDefaultTimeout()
|
||||
Expect(n).Should(Exit(0))
|
||||
|
||||
session2 := podmanTest.Podman([]string{"generate", "systemd", "--restart-sec", "15", "--name", "foocontainer"})
|
||||
session2.WaitWithDefaultTimeout()
|
||||
Expect(session2).Should(Exit(0))
|
||||
Expect(session2.OutputToString()).To(ContainSubstring("RestartSec=15"))
|
||||
})
|
||||
|
||||
It("podman generate systemd --new=false pod", func() {
|
||||
|
||||
Reference in New Issue
Block a user