summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-04-29 17:36:52 +0100
committerRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-05-14 13:05:12 +0000
commit995ff5ac2b357fb7da716eabc4b436b8e05d6f26 (patch)
tree40033cb8ff73676276fa47d8cdad6bc95b909f79 /tests
parent92da8e84e3ac6fc6e8aad1750ba586f05ff012d7 (diff)
downloadbuildstream-995ff5ac2b357fb7da716eabc4b436b8e05d6f26.tar.gz
Add BST_REQUIRES_PREVIOUS_SOURCE_STAGE option
This is an element option that allows sources to be staged more seperately where possible rather than on a per element option. Part of #982
Diffstat (limited to 'tests')
-rw-r--r--tests/sources/local.py2
-rw-r--r--tests/sources/previous_source_access/plugins/sources/foo_transform.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/sources/local.py b/tests/sources/local.py
index 28ed8f5fc..f568fee78 100644
--- a/tests/sources/local.py
+++ b/tests/sources/local.py
@@ -139,7 +139,7 @@ def test_stage_file_exists(cli, datafiles):
# Build, checkout
result = cli.run(project=project, args=['build', 'target.bst'])
result.assert_main_error(ErrorDomain.STREAM, None)
- result.assert_task_error(ErrorDomain.SOURCE, 'ensure-stage-dir-fail')
+ result.assert_task_error(ErrorDomain.ELEMENT, "import-source-files-fail")
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'directory'))
diff --git a/tests/sources/previous_source_access/plugins/sources/foo_transform.py b/tests/sources/previous_source_access/plugins/sources/foo_transform.py
index 820946454..bec4f9913 100644
--- a/tests/sources/previous_source_access/plugins/sources/foo_transform.py
+++ b/tests/sources/previous_source_access/plugins/sources/foo_transform.py
@@ -18,6 +18,7 @@ class FooTransformSource(Source):
# We need access to previous both at track time and fetch time
BST_REQUIRES_PREVIOUS_SOURCES_TRACK = True
BST_REQUIRES_PREVIOUS_SOURCES_FETCH = True
+ BST_REQUIRES_PREVIOUS_SOURCES_CACHE = True
@property
def mirror(self):