diff --git a/ipatests/test_ipaplatform/test_tasks.py b/ipatests/test_ipaplatform/test_tasks.py index bc1e37ebf..23f4fb368 100644 --- a/ipatests/test_ipaplatform/test_tasks.py +++ b/ipatests/test_ipaplatform/test_tasks.py @@ -47,10 +47,10 @@ def test_detect_container(): k, v = item.split('=', 1) if k == 'container': container = v + elif os.path.isfile("/run/.containerenv"): + container = "podman" + elif os.path.isfile("/.dockerenv"): + container = "docker" detected = tasks.detect_container() - if container == 'oci': - # systemd doesn't know about podman - assert detected in {'container-other', container} - else: - assert detected == container + assert detected == container