From e3e16a5f161f9635b0533d84c608d42ea56976ef Mon Sep 17 00:00:00 2001 From: samkellerhals Date: Fri, 17 Nov 2023 10:14:26 +0100 Subject: [PATCH 1/3] Fix codegen regex --- tools/tests/icon4pygen/test_codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/icon4pygen/test_codegen.py b/tools/tests/icon4pygen/test_codegen.py index 8f1fac2275..68fcccf459 100644 --- a/tools/tests/icon4pygen/test_codegen.py +++ b/tools/tests/icon4pygen/test_codegen.py @@ -109,7 +109,7 @@ def check_header_codegen(fname: str) -> None: def check_gridtools_codegen(fname: str) -> None: stencil_name = fname.replace(".hpp", "") - patterns = ["#include <.*>", "using .*;", f"inline auto {stencil_name}"] + patterns = ["#include <.*>", "using .*;", f"inline\s+auto\s+{stencil_name}"] check_for_matches(fname, patterns) From ceb7b525a5ef1a4b69c33448bd3c54f4c977e6ca Mon Sep 17 00:00:00 2001 From: samkellerhals Date: Fri, 17 Nov 2023 11:39:57 +0100 Subject: [PATCH 2/3] try to use clariden --- ci/cscs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/cscs.yml b/ci/cscs.yml index f96cdfd770..c5e8666feb 100644 --- a/ci/cscs.yml +++ b/ci/cscs.yml @@ -17,7 +17,7 @@ variables: DOCKERFILE: ci/docker/Dockerfile.build .test_template: - extends: .container-runner-hohgant-a100 + extends: .container-runner-clariden-a100 timeout: 2h image: $PERSIST_IMAGE_NAME before_script: From 2bcc1783540ca2034b848affa90bbf03446adbb0 Mon Sep 17 00:00:00 2001 From: samkellerhals Date: Fri, 17 Nov 2023 11:50:15 +0100 Subject: [PATCH 3/3] Escape backslash --- tools/tests/icon4pygen/test_codegen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tests/icon4pygen/test_codegen.py b/tools/tests/icon4pygen/test_codegen.py index 68fcccf459..3d85dfa2e5 100644 --- a/tools/tests/icon4pygen/test_codegen.py +++ b/tools/tests/icon4pygen/test_codegen.py @@ -109,7 +109,7 @@ def check_header_codegen(fname: str) -> None: def check_gridtools_codegen(fname: str) -> None: stencil_name = fname.replace(".hpp", "") - patterns = ["#include <.*>", "using .*;", f"inline\s+auto\s+{stencil_name}"] + patterns = ["#include <.*>", "using .*;", f"inline\\s+auto\\s+{stencil_name}"] check_for_matches(fname, patterns)