mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-28 14:15:19 -04:00
regtesting: Use re.fullmatch for --restrictdir
This commit is contained in:
parent
13da268040
commit
5a4eaeead9
1 changed files with 1 additions and 1 deletions
|
|
@ -121,7 +121,7 @@ async def main() -> None:
|
|||
for batch in batches:
|
||||
if not batch.requirements_satisfied(flags, cfg.mpiranks):
|
||||
print(f"Skipping {batch.name} because its requirements are not satisfied.")
|
||||
elif not any(re.match(p, batch.name) for p in cfg.restrictdirs):
|
||||
elif not any(re.fullmatch(p, batch.name) for p in cfg.restrictdirs):
|
||||
num_restrictdirs += 1
|
||||
else:
|
||||
tasks.append(asyncio.get_event_loop().create_task(run_batch(batch, cfg)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue