From 988028fc7c7a35c827e047cd6e1f63c88af0ad9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Thu, 25 Jul 2024 20:14:57 +0200 Subject: [PATCH] Tests: Fix backwards compatibility of --mpiexec --- tests/do_regtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/do_regtest.py b/tests/do_regtest.py index ed19b88ed2..2e9a89f774 100755 --- a/tests/do_regtest.py +++ b/tests/do_regtest.py @@ -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