From 2607ac540482701a0aba187c59e7905eea55feb5 Mon Sep 17 00:00:00 2001 From: Caspar van Leeuwen Date: Tue, 13 Aug 2024 09:50:22 +0200 Subject: [PATCH] Add example on how to skip test --- eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py b/eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py index 6140254f..fdd112cc 100644 --- a/eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py +++ b/eessi/testsuite/tests/libraries/mpi4py/mpi4py_portable.py @@ -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):