summaryrefslogtreecommitdiff
path: root/tests/frontend
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-08-22 20:31:43 +0200
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-23 06:40:19 +0000
commit2215859c925c48dfebd1315b4f5ad2834689ea22 (patch)
treeb463d3e1874efbeee1a5090db5d611615458342d /tests/frontend
parentb0d1aa8340e1ffb0cecb119a80e368cfa2e724ef (diff)
downloadbuildstream-2215859c925c48dfebd1315b4f5ad2834689ea22.tar.gz
Improve error message for deleted open workspaces
Fixes #576.
Diffstat (limited to 'tests/frontend')
-rw-r--r--tests/frontend/workspace.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py
index c7af0a70f..bd4bacd74 100644
--- a/tests/frontend/workspace.py
+++ b/tests/frontend/workspace.py
@@ -767,3 +767,16 @@ def test_list_supported_workspace(cli, tmpdir, datafiles, workspace_cfg, expecte
# Check that workspace config is converted correctly if necessary
loaded_config = _yaml.node_sanitize(_yaml.load(workspace_config_path))
assert loaded_config == parse_dict_as_yaml(expected)
+
+
+@pytest.mark.datafiles(DATA_DIR)
+@pytest.mark.parametrize("kind", repo_kinds)
+def test_inconsitent_pipeline_message(cli, tmpdir, datafiles, kind):
+ element_name, project, workspace = open_workspace(cli, tmpdir, datafiles, kind, False)
+
+ shutil.rmtree(workspace)
+
+ result = cli.run(project=project, args=[
+ 'build', element_name
+ ])
+ result.assert_main_error(ErrorDomain.PIPELINE, "inconsistent-pipeline-workspaced")