Skip to content

Commit 7083ce0

Browse files
author
Theofilos Manitaras
committed
Add documentation
Signed-off-by: Theofilos Manitaras <manitaras@cscs.ch>
1 parent af11e44 commit 7083ce0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/manpage.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -905,6 +905,7 @@ If no node can be selected, the test will be marked as a failure with an appropr
905905
The test is not marked as a failure if not enough nodes are available, but it is skipped instead.
906906
To enforce a failure, use :option:`--flex-alloc-strict`
907907

908+
908909
.. option:: --flex-alloc-strict
909910

910911
Fail flexible tests if their minimum task requirement is not satisfied.
@@ -1059,6 +1060,8 @@ The way the tests are generated and how they interact with the test filtering op
10591060
``--distribute=NODESTATE`` now matches nodes that are exclusively in state ``NODESTATE``, so that the default ``--distribute=idle`` will match only the Slurm nodes that are in the ``IDLE`` state exclusively.
10601061
To achieve the previous behaviour, you should use ``--distribute=idle*``.
10611062

1063+
.. versionchanged:: 4.9
1064+
``--distribute=NODESTATE`` now allows you to specify alternative valid states using the ``|`` character.
10621065

10631066
.. option:: -P, --parameterize=[TEST.]VAR=VAL0,VAL1,...
10641067

reframe/core/schedulers/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,18 @@ def filter_nodes_by_state(nodelist, state):
161161
If ``all``, the initial list is returned untouched.
162162
If ``avail``, only the available nodes will be returned.
163163
All other values are interpreted as a state string.
164+
The pipe character ``|`` can be used as to specify multiple
165+
alternative node states and has the highest priority.
164166
State match is exclusive unless the ``*`` is added at the end of the
165167
state string.
168+
When defining multiple states using ``|``, ``*`` has to be added at
169+
the end of each alternative state for which a non-exclusive match is
170+
required.
171+
166172
:returns: the filtered node list
173+
174+
.. versionchanged:: 4.9
175+
Support the ``|`` character to filter according to alternative states.
167176
'''
168177
if '|' in state:
169178
allowed_states = state.split('|')

0 commit comments

Comments
 (0)