Skip to content

Commit 50da68f

Browse files
committed
SlurmSpawner: req_gres: add test
1 parent 8d85409 commit 50da68f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

batchspawner/tests/test_spawners.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,15 @@ def test_slurm(db, io_loop):
375375
'req_prologue': 'PROLOGUE',
376376
'req_epilogue': 'EPILOGUE',
377377
'req_reservation': 'RES123',
378+
'req_gres': 'GRES123',
378379
}
379380
batch_script_re_list = [
380381
re.compile(r'PROLOGUE.*srun batchspawner-singleuser singleuser_command.*EPILOGUE', re.S),
381382
re.compile(r'^#SBATCH \s+ --cpus-per-task=5', re.X|re.M),
382383
re.compile(r'^#SBATCH \s+ --time=3-05:10:10', re.X|re.M),
383384
re.compile(r'^#SBATCH \s+ some_option_asdf', re.X|re.M),
384385
re.compile(r'^#SBATCH \s+ --reservation=RES123', re.X|re.M),
386+
re.compile(r'^#SBATCH \s+ --gres=GRES123', re.X|re.M),
385387
]
386388
from .. import SlurmSpawner
387389
run_spawner_script(db, io_loop, SlurmSpawner, normal_slurm_script,

0 commit comments

Comments
 (0)