Skip to content

Commit

Permalink
Add example on how to skip test
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Aug 13, 2024
1 parent b6027ed commit 2607ac5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ def set_num_tasks_per_node(self):
for 1 node and 2 node options where the request is for full nodes."""
hooks.assign_tasks_per_compute_unit(self, COMPUTE_UNIT[CPU])

# This test scales almost indefinitely
# For tests that have limited scaling, one make sure that test instances exceeding
# a predefined maximum task count are skipped using:
# max_tasks = 300
# self.skip_if(self.num_tasks > max_tasks,
# f'Skipping test: more than {max_tasks} tasks are requested ({self.num_tasks})')

# Make sure we request sufficient memory from the scheduler
@run_after('setup')
def request_mem(self):
Expand Down

0 comments on commit 2607ac5

Please sign in to comment.