summaryrefslogtreecommitdiff
path: root/tests/format/project.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-08 21:42:27 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-04-08 21:57:01 +0900
commit96af6dd5ae9743c7405cbfd99c929701c023f3e5 (patch)
treeaef3a4e56a52196576502cfa04e87a31216d74f2 /tests/format/project.py
parent337b7a31c244241f722a5ff709d23df75a021eb9 (diff)
downloadbuildstream-96af6dd5ae9743c7405cbfd99c929701c023f3e5.tar.gz
More specific exceptions when a project.conf is missing.
Since we want to react and start an interactive session when the project.conf is missing, we need a more specific error to catch.
Diffstat (limited to 'tests/format/project.py')
-rw-r--r--tests/format/project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/format/project.py b/tests/format/project.py
index cfa02bd52..b8e411351 100644
--- a/tests/format/project.py
+++ b/tests/format/project.py
@@ -16,7 +16,7 @@ DATA_DIR = os.path.join(
def test_missing_project_conf(cli, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
result = cli.run(project=project, args=['workspace', 'list'])
- result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.MISSING_FILE)
+ result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.MISSING_PROJECT_CONF)
@pytest.mark.datafiles(os.path.join(DATA_DIR))