From dba46cf85cf2c030349660fb7e4028477c8b2c88 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 26 Sep 2022 17:44:41 +0200 Subject: [PATCH] Use podman system reset to clean up all pods/containers --- test/check-application | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/check-application b/test/check-application index 7e0ca0eee..18eb9f0f0 100755 --- a/test/check-application +++ b/test/check-application @@ -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")