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 | |
parent | 2390c81411aee2019cec891ea0be5247e779bc2e (diff) | |
download | buildstream-11dffaef4b75806b166db1a46b520e6d147d7969.tar.gz |
_stream.py: Add StreamError exception
Use Stream error for Stream errors.
Diffstat (limited to 'tests/sources')
-rw-r--r-- | tests/sources/deb.py | 4 | ||||
-rw-r--r-- | tests/sources/git.py | 2 | ||||
-rw-r--r-- | tests/sources/local.py | 2 | ||||
-rw-r--r-- | tests/sources/patch.py | 4 | ||||
-rw-r--r-- | tests/sources/tar.py | 4 | ||||
-rw-r--r-- | tests/sources/zip.py | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/tests/sources/deb.py b/tests/sources/deb.py index a4dbd7866..b905f0dcb 100644 --- a/tests/sources/deb.py +++ b/tests/sources/deb.py @@ -65,7 +65,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) @@ -82,7 +82,7 @@ def test_fetch_bad_ref(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) diff --git a/tests/sources/git.py b/tests/sources/git.py index bc69d0579..06888c311 100644 --- a/tests/sources/git.py +++ b/tests/sources/git.py @@ -35,7 +35,7 @@ def test_fetch_bad_ref(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) diff --git a/tests/sources/local.py b/tests/sources/local.py index bfddf6881..9dfb5f972 100644 --- a/tests/sources/local.py +++ b/tests/sources/local.py @@ -88,5 +88,5 @@ def test_stage_file_exists(cli, tmpdir, datafiles): # Build, checkout result = cli.run(project=project, args=['build', 'target.bst']) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, 'ensure-stage-dir-fail') 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") diff --git a/tests/sources/tar.py b/tests/sources/tar.py index c0b29ee3f..95bbd3f66 100644 --- a/tests/sources/tar.py +++ b/tests/sources/tar.py @@ -65,7 +65,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) @@ -83,7 +83,7 @@ def test_fetch_bad_ref(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) diff --git a/tests/sources/zip.py b/tests/sources/zip.py index b028163f9..5281fcea2 100644 --- a/tests/sources/zip.py +++ b/tests/sources/zip.py @@ -52,7 +52,7 @@ def test_fetch_bad_url(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) @@ -70,7 +70,7 @@ def test_fetch_bad_ref(cli, tmpdir, datafiles): result = cli.run(project=project, args=[ 'fetch', 'target.bst' ]) - result.assert_main_error(ErrorDomain.PIPELINE, None) + result.assert_main_error(ErrorDomain.STREAM, None) result.assert_task_error(ErrorDomain.SOURCE, None) |