diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-06 19:19:47 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-01-06 19:26:43 +0900 |
commit | 5905760a7b63aa8a01eacdc6ef053e39aa0b4b5b (patch) | |
tree | d6beb17040a1d95bb1c645f06f5c067ef492b378 /tests/sources | |
parent | 8a2f75edd94b91c37b5c0b16597619fb03b96465 (diff) | |
download | buildstream-5905760a7b63aa8a01eacdc6ef053e39aa0b4b5b.tar.gz |
local & patch source tests: Preflight errors now report PipelineError
Diffstat (limited to 'tests/sources')
-rw-r--r-- | tests/sources/local.py | 2 | ||||
-rw-r--r-- | tests/sources/patch.py | 4 |
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')) |