Skip to content

Commit 0ff3fa4

Browse files
committed
Small fixes
1 parent 24aa49a commit 0ff3fa4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reframe/core/schedulers/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ def _get_reservation_nodes(self, reservation):
445445

446446
flags_match = re.search(r'Flags=(\S+)', completed.stdout)
447447
if flags_match:
448-
if 'MAINT' in flags_match[1].split(','):
448+
if 'MAINT' in flags_match.group(1).split(','):
449449
self.node_available_states.add('MAINTENANCE')
450450
else:
451451
self.log(f"could not extract the reservation flags for "

unittests/test_schedulers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,4 @@ def test_slurm_node_is_down(slurm_node_allocated,
14611461
slurm_only):
14621462
assert not slurm_only().is_node_down(slurm_node_allocated)
14631463
assert not slurm_only().is_node_down(slurm_node_idle)
1464-
assert slurm_only().is_node_down(slurm_node_nopart)
1464+
assert slurm_only().is_node_down(slurm_node_nopart)

0 commit comments

Comments
 (0)