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(