Tests: Fix backwards compatibility of --mpiexec

This commit is contained in:
Ole Schütt 2024-07-25 20:14:57 +02:00 committed by Ole Schütt
parent 0a07105a81
commit 988028fc7c

View file

@ -257,7 +257,7 @@ class Config:
self.cp2k_root = Path(__file__).resolve().parent.parent
self.mpiexec = args.mpiexec
if "{N}" not in self.mpiexec: # backwards compatibility
self.mpiexec = self.mpiexec.replace(" ", " -n {N} ", 1)
self.mpiexec = f"{self.mpiexec} ".replace(" ", " -n {N} ", 1).strip()
self.smoketest = args.smoketest
self.valgrind = args.valgrind
self.keepalive = args.keepalive