Skip to content

Commit 6e56af7

Browse files
committed
Small fix
1 parent 8f7c399 commit 6e56af7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

reframe/core/schedulers/slurm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ def filternodes(self, job, nodes):
306306
# create a mutable list out of the immutable SequenceView that
307307
# sched_access is
308308
options = job.sched_access + job.options + job.cli_options
309-
options = list(itertools.chain.from_iterable(shlex.split(m)
310-
for m in options))
309+
options = list(itertools.chain.from_iterable(shlex.split(opt)
310+
for opt in options))
311311
option_parser = ArgumentParser()
312312
option_parser.add_argument('--reservation')
313313
option_parser.add_argument('-p', '--partition')

reframe/frontend/distribute_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from reframe.frontend.executors import generate_testcases
1616

1717

18-
def getallnodes(state='all', jobs_cli_options=[]):
18+
def getallnodes(state='all', jobs_cli_options=None):
1919
rt = runtime.runtime()
2020
nodes = {}
2121
for part in rt.system.partitions:

0 commit comments

Comments
 (0)