diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-16 16:35:42 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-16 16:45:04 +0900 |
commit | ca2331c3f314ff53428b5ca9c8c2efc9d2dbd7cc (patch) | |
tree | a4250ee0787c7f834390d48731d9a1b6760898a9 /tests/sources/local.py | |
parent | 7c2a43d103e3034aa25ac7bd8571758a50526e61 (diff) | |
download | buildstream-ca2331c3f314ff53428b5ca9c8c2efc9d2dbd7cc.tar.gz |
source.py, element.py, _pipeline.py: Streamling preflighting.
Instead of having the pipeline preflight all sources separately
from elements, have the element preflight it's sources.
This is in order to simplify the shared code path for the pipeline
and the loader to use for instantiating elements.
Also updated tests to expect the new ElementError and SourceError
instead of the PipelineError which was raised for preflighting before.
Diffstat (limited to 'tests/sources/local.py')
-rw-r--r-- | tests/sources/local.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sources/local.py b/tests/sources/local.py index 88b553677..bfddf6881 100644 --- a/tests/sources/local.py +++ b/tests/sources/local.py @@ -21,7 +21,7 @@ def test_missing_file(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'show', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.SOURCE, None) @pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic')) |