summaryrefslogtreecommitdiff
path: root/conftest.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-10-24 18:43:51 +0100
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-19 15:52:24 +0000
commit06e28860b5b53ba92c2d90de4fa9a101f5c7c6ab (patch)
treebaead3712840a8a19faf75e135ad141f0bd410b8 /conftest.py
parent5fbc5f4173cbe1dbc27ee1f3c0660f8b6acbef4d (diff)
downloadbuildstream-06e28860b5b53ba92c2d90de4fa9a101f5c7c6ab.tar.gz
Don't cache sandbox errors
Sandbox errors (like missing host tools) are dependent on the host system and rarely on what is actually done. It is therefore better to not cache them as they are subject to change between two runs. Also add test to ensure sandbox failure are not cached
Diffstat (limited to 'conftest.py')
-rwxr-xr-xconftest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/conftest.py b/conftest.py
index 1f0259f0f..f3c09a5fb 100755
--- a/conftest.py
+++ b/conftest.py
@@ -56,6 +56,10 @@ def integration_cache(request):
pass
-@pytest.fixture(autouse=True)
def clean_platform_cache():
Platform._instance = None
+
+
+@pytest.fixture(autouse=True)
+def ensure_platform_cache_is_clean():
+ clean_platform_cache()