From 36e27aa22dfd3bf67daad3e67e36473721661be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= Date: Wed, 9 Aug 2023 14:40:55 +0200 Subject: [PATCH] Use get_image_id_from_iidfile to handle old podman versions --- tests/test_all.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_all.py b/tests/test_all.py index 13de6f65..668160b2 100644 --- a/tests/test_all.py +++ b/tests/test_all.py @@ -224,8 +224,7 @@ def test_certificates_are_present( f"{' '.join(container_runtime.build_command + get_extra_build_args(pytestconfig))} " f"--iidfile={iidfile} {tmp_path}", ) - with open(iidfile, "r", encoding="utf-8") as id_f: - _, img_id = id_f.read().strip().split(":") + img_id = container_runtime.get_image_id_from_iidfile(iidfile) host.run_expect( [0],