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-18 15:56:58 +0000 |
commit | f2a2c84b310ce6c7991be908b5770c7a7a03eac6 (patch) | |
tree | 3aa96cdfa38b31560f77253fa5a57e926cb682e7 /tests/testutils/runcli.py | |
parent | 644d8b28505842eb713bf402b455f751b15b6022 (diff) | |
download | buildstream-willsalmon/shellBuildTrees.tar.gz |
Basic options for shell --build to use buildtreeswillsalmon/shellBuildTrees
Fixes issue #740
Diffstat (limited to 'tests/testutils/runcli.py')
-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 |