From 0d44b44bac05d0b0228d2ae062f8e8905cec03d3 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 14 Nov 2025 12:37:40 +0100 Subject: [PATCH] test: redirect python cache to /tmp to fix cleanup issues Set PYTHONPYCACHEDIR=/tmp/__pycache__ in test/env to avoid permission issues during git cleanup operations. When tests run in Docker containers as root, __pycache__ directories and .pyc files end up owned by root, preventing the CI user from cleaning them up. Signed-off-by: Joachim Wiberg --- test/env | 1 + 1 file changed, 1 insertion(+) diff --git a/test/env b/test/env index b5e651a5..b89e21ea 100755 --- a/test/env +++ b/test/env @@ -228,6 +228,7 @@ if [ "$containerize" ]; then --cap-add=NET_ADMIN \ --device=/dev/net/tun \ --env PYTHONHASHSEED=${PYTHONHASHSEED:-$(shuf -i 0-$(((1 << 32) - 1)) -n 1)} \ + --env PYTHONPYCACHEDIR=/tmp/__pycache__ \ --env VIRTUAL_ENV_DISABLE_PROMPT=yes \ --env INFAMY_ARGS="$INFAMY_ARGS" \ --env INFAMY_EXTRA_ARGS="$INFAMY_EXTRA_ARGS" \