Skip to content

Commit

Permalink
Merge pull request #256 from t20100/fix-slurm-test
Browse files Browse the repository at this point in the history
Fix Slurm test used regular expression
  • Loading branch information
consideRatio authored Mar 16, 2024
2 parents f23a984 + f3b7746 commit 0a503cc
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 0a503cc

Please sign in to comment.