diff options
author | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-10-24 18:43:51 +0100 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-11-19 15:52:24 +0000 |
commit | 06e28860b5b53ba92c2d90de4fa9a101f5c7c6ab (patch) | |
tree | baead3712840a8a19faf75e135ad141f0bd410b8 /conftest.py | |
parent | 5fbc5f4173cbe1dbc27ee1f3c0660f8b6acbef4d (diff) | |
download | buildstream-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-x | conftest.py | 6 |
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() |