The check is OK, but don't hardcode the `2` in multiple places then, define a constant, e.g. `CP2K_REGTEST_CORE_COUNT`

We could also use `self.cfg['parallel']` though, instead of hardcoding to `2` (with or without constant)?