summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-06 19:19:47 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-06 19:26:43 +0900
commit5905760a7b63aa8a01eacdc6ef053e39aa0b4b5b (patch)
treed6beb17040a1d95bb1c645f06f5c067ef492b378
parent8a2f75edd94b91c37b5c0b16597619fb03b96465 (diff)
downloadbuildstream-5905760a7b63aa8a01eacdc6ef053e39aa0b4b5b.tar.gz
local & patch source tests: Preflight errors now report PipelineError
-rw-r--r--tests/sources/local.py2
-rw-r--r--tests/sources/patch.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/sources/local.py b/tests/sources/local.py
index bfddf6881..88b553677 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.SOURCE, None)
+ result.assert_main_error(ErrorDomain.PIPELINE, None)
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic'))
diff --git a/tests/sources/patch.py b/tests/sources/patch.py
index 2f23fd5dd..452b4f64f 100644
--- a/tests/sources/patch.py
+++ b/tests/sources/patch.py
@@ -21,7 +21,7 @@ def test_missing_patch(cli, tmpdir, datafiles):
result = cli.run(project=project, args=[
'show', 'target.bst'
])
- result.assert_main_error(ErrorDomain.SOURCE, 'patch-no-exist')
+ result.assert_main_error(ErrorDomain.PIPELINE, 'patch-no-exist')
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic'))
@@ -35,7 +35,7 @@ def test_non_regular_file_patch(cli, tmpdir, datafiles):
result = cli.run(project=project, args=[
'show', 'irregular.bst'
])
- result.assert_main_error(ErrorDomain.SOURCE, "patch-not-a-file")
+ result.assert_main_error(ErrorDomain.PIPELINE, "patch-not-a-file")
@pytest.mark.datafiles(os.path.join(DATA_DIR, 'basic'))