From 6989b44392ed34d0a910e276ebdc9084cbd3fa09 Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 1 Jan 2018 18:26:54 +0900 Subject: tests/cachekey/cachekey.py: Use new error checking --- tests/cachekey/cachekey.py | 6 +----- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.1