]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/mpi: fix invalid escape sequence
authorKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 22:17:36 +0000 (00:17 +0200)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 4 Aug 2024 23:05:11 +0000 (01:05 +0200)
    teuthology/task/mpi.py:21: SyntaxWarning: invalid escape sequence '\s'
      version = re.search("^\s+Version:\s+(.+)$", version_str, re.MULTILINE).group(1)

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@clyso.com>
teuthology/task/mpi.py

index 6c709fd1711a8e1d671f8dd9847c01050dfc5648..0e1b504dd515e5596acc871d0e18239dd12895f7 100644 (file)
@@ -18,7 +18,7 @@ def _check_mpi_version(remotes):
     for remote in remotes:
         version_str = remote.sh("mpiexec --version")
         try:
-            version = re.search("^\s+Version:\s+(.+)$", version_str, re.MULTILINE).group(1)
+            version = re.search(r"^\s+Version:\s+(.+)$", version_str, re.MULTILINE).group(1)
         except AttributeError:
             raise RuntimeError("Malformed MPI version output: {0}".format(version_str))
         else: