Skip to content

Commit

Permalink
regtesting: Use re.fullmatch for --restrictdir
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Dec 28, 2021
1 parent 13da268 commit 5a4eaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/regtesting/do_regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 5a4eaee

Please sign in to comment.