Skip to content

Commit

Permalink
Improved reporting for integration tests about error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeeks committed Oct 6, 2023
1 parent d22af11 commit b0de834
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CI/src/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def get_sarus_error_output(command, fail_expected=True):

def assert_sarus_raises_error_containing_text(command, text):
sarus_output = get_sarus_error_output(command)
assert text in sarus_output, 'Sarus generated an error, but it did not contain the expected text "{}".'.format(text)
assert text in sarus_output, ('Sarus generated an error, but it did not contain the expected text.\n'
'Generated message: {}\n'
'Expected: {}'.format(sarus_output, text))


def modify_sarus_json(new_parameters):
Expand Down

0 comments on commit b0de834

Please sign in to comment.