diff options
author | William Salmon <will.salmon@codethink.co.uk> | 2018-12-04 16:42:58 +0000 |
---|---|---|
committer | William Salmon <will.salmon@codethink.co.uk> | 2018-12-19 13:23:19 +0000 |
commit | e29aea36cbde0865ec9bba83de5b6f1e4347a0cd (patch) | |
tree | 4980e783d33ce7b60a3757c21ac4f69d4c0fd36c /tests/testutils | |
parent | 644d8b28505842eb713bf402b455f751b15b6022 (diff) | |
download | buildstream-e29aea36cbde0865ec9bba83de5b6f1e4347a0cd.tar.gz |
Basic options for shell --build to use buildtrees
Fixes issue #740
Diffstat (limited to 'tests/testutils')
-rw-r--r-- | tests/testutils/runcli.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/testutils/runcli.py b/tests/testutils/runcli.py index ce5864bdf..f94cec8ae 100644 --- a/tests/testutils/runcli.py +++ b/tests/testutils/runcli.py @@ -153,6 +153,20 @@ class Result(): assert self.task_error_domain == error_domain, fail_message assert self.task_error_reason == error_reason, fail_message + # assert_shell_error() + # + # Asserts that the buildstream created a shell and that the task in the + # shell failed. + # + # Args: + # fail_message (str): An optional message to override the automatic + # assertion error messages + # Raises: + # (AssertionError): If any of the assertions fail + # + def assert_shell_error(self, fail_message=''): + assert self.exit_code == 1, fail_message + # get_tracked_elements() # # Produces a list of element names on which tracking occurred |