Verified Commit e1c30341 authored by Michal Nowak's avatar Michal Nowak
Browse files

Disable pytest cacheprovider plugin in CI

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.
parent c2f43e95
Pipeline #70172 canceled with stages
in 14 seconds
......@@ -39,6 +39,10 @@ variables:
# In multithreaded unit tests, abort on the first failure
CMOCKA_TEST_ABORT: 1
# 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*
......
......@@ -15,4 +15,3 @@ rm -f ns*/named.run
rm -f ns*/rpz*.txt
rm -rf __pycache__
rm -f *.status
rm -rf .cache
......@@ -15,4 +15,3 @@ rm -f */named.conf
rm -f */named.run
rm -rf __pycache__
rm -f *.status
rm -rf .cache
......@@ -27,4 +27,4 @@ rm -f traffic traffic.out.* traffic.json.* traffic.xml.*
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__
......@@ -15,5 +15,5 @@ rm -f ./ns*/named.lock
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment