diff options
| author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-04-29 15:46:13 +0900 |
|---|---|---|
| committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-05-08 03:59:38 +0900 |
| commit | 11dffaef4b75806b166db1a46b520e6d147d7969 (patch) | |
| tree | a9d370b13b8d22435c81607a6e0e9ea0085cd2a3 /tests/sources/patch.py | |
| parent | 2390c81411aee2019cec891ea0be5247e779bc2e (diff) | |
| download | buildstream-11dffaef4b75806b166db1a46b520e6d147d7969.tar.gz | |
_stream.py: Add StreamError exception
Use Stream error for Stream errors.
Diffstat (limited to 'tests/sources/patch.py')
| -rw-r--r-- | tests/sources/patch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sources/patch.py b/tests/sources/patch.py index 2f23fd5dd..697a0ccfb 100644 --- a/tests/sources/patch.py +++ b/tests/sources/patch.py @@ -61,7 +61,7 @@ def test_stage_file_nonexistent_dir(cli, tmpdir, datafiles): # Fails at build time because it tries to patch into a non-existing directory result = cli.run(project=project, args=['build', 'failure-nonexistent-dir.bst']) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, "patch-no-files") @@ -72,7 +72,7 @@ def test_stage_file_empty_dir(cli, tmpdir, datafiles): # Fails at build time because it tries to patch with nothing else staged result = cli.run(project=project, args=['build', 'failure-empty-dir.bst']) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, "patch-no-files") |
