summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 18:26:54 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-01-01 19:44:53 +0900
commit6989b44392ed34d0a910e276ebdc9084cbd3fa09 (patch)
tree865348471d94b02bf9c63efa85e86858e4c88f1b
parentc6df92fcbec1300334cdb1a79fdfa633fb3385fb (diff)
downloadbuildstream-6989b44392ed34d0a910e276ebdc9084cbd3fa09.tar.gz
tests/cachekey/cachekey.py: Use new error checking
-rw-r--r--tests/cachekey/cachekey.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index 4f4ddc9e3..d59a15529 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -155,9 +155,5 @@ def test_cache_key(datafiles, cli):
'--format', '%{name}::%{full-key}',
'target.bst'
])
-
- if result.exit_code != 0:
- raise AssertionError("BuildStream exited with code {} and output:\n{}"
- .format(result.exit_code, result.output))
-
+ result.assert_success()
assert_cache_keys(project, result.output)