Skip to content

Commit

Permalink
Added integration tests for MPI hook compatibility types
Browse files Browse the repository at this point in the history
  • Loading branch information
Madeeks committed Sep 2, 2024
1 parent 7b1f2e0 commit ede25d1
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 143 deletions.
2 changes: 0 additions & 2 deletions CI/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
controller:
image: @container_image@
Expand Down
8 changes: 8 additions & 0 deletions CI/src/common/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,14 @@ def assert_sarus_raises_error_containing_text(command, text):
'Expected: {}'.format(sarus_output, text))


def assert_sarus_raises_error_containing_regex(command, expr):
import re
sarus_output = get_sarus_error_output(command)
assert re.search(expr, sarus_output), ('Sarus generated an error, but it did not contain the expected regex.\n'
'Generated message: {}\n'
'Expected: "{}"'.format(sarus_output, expr))


def modify_sarus_json(new_parameters):
if os.geteuid() == 0:
backup_sarus_json()
Expand Down
Loading

0 comments on commit ede25d1

Please sign in to comment.