mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 05:43:02 +02:00
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 <troglobit@gmail.com>
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user