From 995ff5ac2b357fb7da716eabc4b436b8e05d6f26 Mon Sep 17 00:00:00 2001 From: Raoul Hidalgo Charman Date: Mon, 29 Apr 2019 17:36:52 +0100 Subject: 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 --- tests/sources/local.py | 2 +- tests/sources/previous_source_access/plugins/sources/foo_transform.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') 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): -- cgit v1.2.1