From 12730428bb2bb4c381d760041a33389bb7e6f8c2 Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Wed, 2 Jul 2025 09:27:05 +0200 Subject: [PATCH] test: enable unsafe teardown of tempDir aarch64 libc or kernel might be stricter in keeping files locked while they're open. This causes failed teardown of the tmpdir --- pkgs/clan-cli/clan_cli/tests/sshd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)