Skip to content

Commit

Permalink
SlurmSpawner: req_gres: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Jul 1, 2020
1 parent 8d85409 commit 50da68f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions batchspawner/tests/test_spawners.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,15 @@ def test_slurm(db, io_loop):
'req_prologue': 'PROLOGUE',
'req_epilogue': 'EPILOGUE',
'req_reservation': 'RES123',
'req_gres': 'GRES123',
}
batch_script_re_list = [
re.compile(r'PROLOGUE.*srun batchspawner-singleuser singleuser_command.*EPILOGUE', re.S),
re.compile(r'^#SBATCH \s+ --cpus-per-task=5', re.X|re.M),
re.compile(r'^#SBATCH \s+ --time=3-05:10:10', re.X|re.M),
re.compile(r'^#SBATCH \s+ some_option_asdf', re.X|re.M),
re.compile(r'^#SBATCH \s+ --reservation=RES123', re.X|re.M),
re.compile(r'^#SBATCH \s+ --gres=GRES123', re.X|re.M),
]
from .. import SlurmSpawner
run_spawner_script(db, io_loop, SlurmSpawner, normal_slurm_script,
Expand Down

0 comments on commit 50da68f

Please sign in to comment.