summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)