Skip to content

Commit

Permalink
Use podman system reset to clean up all pods/containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Sep 26, 2022
1 parent 25f4d0b commit dba46cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ class TestApplication(testlib.MachineCase):
self.admin_s.execute("systemctl --user stop podman.service; systemctl --now --user enable podman.socket")
self.restore_dir("/home/admin/.local/share/containers", reboot_safe=True)
self.addCleanup(self.admin_s.execute, "systemctl --user stop podman.service podman.socket || true")
self.addCleanup(self.admin_s.execute, "podman rm --force --all || true")
self.addCleanup(self.admin_s.execute, "podman pod rm --force --all || true")
self.addCleanup(self.admin_s.execute, "podman system reset --force")

# But disable it globally so that "systemctl --user disable" does what we expect
m.execute("systemctl --global disable podman.socket")
Expand Down

0 comments on commit dba46cf

Please sign in to comment.