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:41:08 +0900 |
commit | abe22abb18b98818f8589895c4be25f886264a8b (patch) | |
tree | 24a8062067b59bcd11ca2da028ed0bdc3bdcfce0 | |
parent | ab666e53c3e2600ea99d46c8567b2f251bc49949 (diff) | |
download | buildstream-abe22abb18b98818f8589895c4be25f886264a8b.tar.gz |
local & patch source tests: Preflight errors now report PipelineError
-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')) |