Skip to content

Commit

Permalink
Fix #SBATCH regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 authored and consideRatio committed Mar 16, 2024
1 parent f23a984 commit f3b7746
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions batchspawner/tests/test_spawners.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ async def test_slurm(db, event_loop):
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),
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

Expand Down

0 comments on commit f3b7746

Please sign in to comment.