diff --git a/test/runner/lib/delegation.py b/test/runner/lib/delegation.py index 8392fc59a7..2c7900ce9a 100644 --- a/test/runner/lib/delegation.py +++ b/test/runner/lib/delegation.py @@ -278,7 +278,6 @@ def delegate_docker(args, exclude, require, integration_targets): # run unit tests unprivileged to prevent stray writes to the source tree if isinstance(args, UnitsConfig): writable_dirs = [ - '/root/ansible/lib/ansible.egg-info', '/root/ansible/.pytest_cache', ] diff --git a/test/runner/lib/pytar.py b/test/runner/lib/pytar.py index 33fe002bb4..145c91afaf 100644 --- a/test/runner/lib/pytar.py +++ b/test/runner/lib/pytar.py @@ -37,6 +37,7 @@ class DefaultTarFilter(TarFilter): '.tox', '.git', '.idea', + '.pytest_cache', '__pycache__', 'ansible.egg-info', )