summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-06-13 16:35:48 +0100
committerRaoul Hidalgo Charman <raoul.hidalgocharman@codethink.co.uk>2019-06-13 17:13:30 +0100
commit3395d91eb42302bf64e2c124f0990f7eb44d3962 (patch)
tree06df14883509c4cdb31a2c266463b5a7da02fa10 /tests
parent9be35e6cef297cef1da43f4cc2dc4ca78a847725 (diff)
downloadbuildstream-3395d91eb42302bf64e2c124f0990f7eb44d3962.tar.gz
_exceptions.py: Make ErrorDomain uniqueraoul/unique-error-domains
For some reason PROG_NOT_FOUND and APP were both under 12 which could be confusing. Changed PROG_NOT_FOUND to 16 and added a unique decorator to prevent this from happening again. Updated shellbuildtrees test to check correct error domain.
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/shellbuildtrees.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/integration/shellbuildtrees.py b/tests/integration/shellbuildtrees.py
index 78dad8747..e53003757 100644
--- a/tests/integration/shellbuildtrees.py
+++ b/tests/integration/shellbuildtrees.py
@@ -286,7 +286,7 @@ def test_buildtree_options(cli, tmpdir, datafiles):
res = cli.run(project=project, args=[
'shell', '--build', element_name, '--use-buildtree', 'always', '--', 'cat', 'test'
])
- res.assert_main_error(ErrorDomain.PROG_NOT_FOUND, None)
+ res.assert_main_error(ErrorDomain.APP, None)
assert 'Buildtree is not cached locally or in available remotes' in res.stderr
assert 'Hi' not in res.output
assert 'Attempting to fetch missing artifact buildtree' not in res.stderr