From 1dde037632bb0738eecdcb339a204c9e6b5037ce Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Giraudeau Date: Thu, 20 Aug 2026 18:20:00 +0200 Subject: [PATCH] fix: use of 'sleep' in container was using host path for it. --- lib/container-test-driver/test_driver/driver.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/container-test-driver/test_driver/driver.py b/lib/container-test-driver/test_driver/driver.py index a347630e..0416c992 100644 --- a/lib/container-test-driver/test_driver/driver.py +++ b/lib/container-test-driver/test_driver/driver.py @@ -154,12 +154,8 @@ def start_all(self) -> None: for machine in self.machines: nspawn_uuid = uuid.uuid4() - sleep = shutil.which("sleep") - if sleep is None: - msg = "sleep command not found" - raise RuntimeError(msg) machine.execute( - f"systemd-run /bin/sh -c '{sleep} 999999999 && echo {nspawn_uuid}'", + f"systemd-run /bin/sh -c 'sleep 999999999 && echo {nspawn_uuid}'", ) print(