diff --git a/pkgs/clan-cli/clan_cli/tests/sshd.py b/pkgs/clan-cli/clan_cli/tests/sshd.py index d40b06568..edd84d0c5 100644 --- a/pkgs/clan-cli/clan_cli/tests/sshd.py +++ b/pkgs/clan-cli/clan_cli/tests/sshd.py @@ -42,7 +42,7 @@ class SshdConfig: def sshd_config(test_root: Path) -> Iterator[SshdConfig]: # FIXME, if any parent of the sshd directory is world-writable then sshd will refuse it. # we use .direnv instead since it's already in .gitignore - with TemporaryDirectory(prefix="sshd-") as _dir: + with TemporaryDirectory(prefix="sshd-", ignore_cleanup_errors=True) as _dir: tmpdir = Path(_dir) host_key = test_root / "data" / "ssh_host_ed25519_key" host_key.chmod(0o600)