You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ju...@apache.org on 2021/10/24 20:05:50 UTC
[buildstream] branch juerg/integration-cache updated: wip
This is an automated email from the ASF dual-hosted git repository.
juergbi pushed a commit to branch juerg/integration-cache
in repository https://gitbox.apache.org/repos/asf/buildstream.git
The following commit(s) were added to refs/heads/juerg/integration-cache by this push:
new 224ed10 wip
224ed10 is described below
commit 224ed10f5fa5b72369721819bb7d42a04d5233e8
Author: Jürg Billeter <j...@bitron.ch>
AuthorDate: Sun Oct 24 22:05:43 2021 +0200
wip
---
src/buildstream/testing/integration.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/buildstream/testing/integration.py b/src/buildstream/testing/integration.py
index faa53ca..7b8eb41 100644
--- a/src/buildstream/testing/integration.py
+++ b/src/buildstream/testing/integration.py
@@ -88,7 +88,7 @@ class IntegrationCache:
raise AssertionError("Unable to create test directory !") from e
-@pytest.fixture(scope="session")
+@pytest.fixture()
def integration_cache(request):
# Set the cache dir to the INTEGRATION_CACHE variable, or the
# default if that is not set.
@@ -103,6 +103,5 @@ def integration_cache(request):
# Clean up the artifacts after each test session - we only want to
# cache sources between tests
- os.system("rm -rf " + cache.cachdir)
shutil.rmtree(cache.cachedir, ignore_errors=True)
shutil.rmtree(os.path.join(cache.root, "cas"), ignore_errors=True)