From 50da68fabb79b577bdd1c739ef29735db1e02e3b Mon Sep 17 00:00:00 2001 From: Richard Darst Date: Wed, 1 Jul 2020 18:18:50 +0300 Subject: [PATCH] SlurmSpawner: req_gres: add test --- batchspawner/tests/test_spawners.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/batchspawner/tests/test_spawners.py b/batchspawner/tests/test_spawners.py index f249e6fd..f2f46a2d 100644 --- a/batchspawner/tests/test_spawners.py +++ b/batchspawner/tests/test_spawners.py @@ -375,6 +375,7 @@ 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), @@ -382,6 +383,7 @@ def test_slurm(db, io_loop): 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,