From ff9c7f3419a58a234316146a1b2f6d9fae35d8ff Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 15 Apr 2024 09:28:09 +0200 Subject: [PATCH] test: Adjust expected default RestartPolicy value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/containers/podman/pull/22322 changes the reported default restart policy from "" to "no". Accept both forms for the time being, until all supported OSes have podman ≥ 5.1. --- test/check-application | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/check-application b/test/check-application index 66ec0d01b..19d5cfe5f 100755 --- a/test/check-application +++ b/test/check-application @@ -2538,7 +2538,8 @@ class TestApplication(testlib.MachineCase): container_name = 'none' create_container(container_name) - self.assertEqual(self.getRestartPolicy(auth, container_name), '{ 0}') + # format changed in podman 5.1 (https://github.com/containers/podman/pull/22322) + self.assertIn(self.getRestartPolicy(auth, container_name), ['{ 0}', '{no 0}']) container_name = 'restart' create_container(container_name, 'always')