The pytest "cacheprovider" plugin produces a .cache/v/cache/lastfailed
file, which holds a Python dictionary structure with failed tests.
However, on Ubuntu 16.04 (Xenial) the file is created even though the
test passed and the file contains just an empty dictionary ("{}").
Given that we are not interested in this feature, disabling the
"cacheprovider" plugin globally and removing per-test removals of the
.cache directory seems like the best course of action.
(cherry picked from commit
e1c30341076e0e1e76fbbb6cad6eb8086e6fc0e6)
BIND_INSTALL_PATH: "${CI_PROJECT_DIR}/.local"
+ # Disable pytest's "cacheprovider" plugin to prevent it from creating
+ # cross-testrun files as there is no need to use that feature in CI.
+ PYTEST_ADDOPTS: "-p no:cacheprovider"
+
# Default platforms to run "stress" tests on
BIND_STRESS_TEST_OS: linux
BIND_STRESS_TEST_ARCH: amd64
+.cache
__pycache__
dig.out*
rndc.out*
rm -f */named.run
rm -rf __pycache__
rm -f *.status
-rm -rf .cache
rm -f xml.*mem json.*mem
rm -f xml.*stats json.*stats
rm -f zones zones.out.* zones.json.* zones.xml.* zones.expect.*
-rm -rf ./.cache ./__pycache__
+rm -rf ./__pycache__
rm -f ./ns*/named.memstats
rm -f ./ns*/named.run*
rm -f ./ns*/named.stats
-rm -rf ./.cache ./__pycache__
+rm -rf ./__pycache__
rm -f ./ns*/large.db