From c76b6c45bb413e87b2cc0fbcc25f25e86f5b507f Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 17 Apr 2024 15:02:26 +0200 Subject: ["CC/test", "test"] use stage expression ... instead of inlining the code. In this way, we also have all the checks that the test runner consists of precisely one artifact. --- CC/test/RULES | 33 +++++++-------------------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/CC/test/RULES b/CC/test/RULES index e09d08e..ac1bff9 100644 --- a/CC/test/RULES +++ b/CC/test/RULES @@ -195,32 +195,13 @@ , ["deps-transition", {"type": "var", "name": "host-trans"}] , ["deps-fieldnames", ["private-deps", "defaults"]] , [ "runner" - , { "type": "map_union" - , "$1": - { "type": "foreach" - , "var": "runner" - , "range": {"type": "FIELD", "name": "runner"} - , "body": - { "type": "map_union" - , "$1": - { "type": "foreach" - , "var": "runner" - , "range": - { "type": "values" - , "$1": - { "type": "DEP_ARTIFACTS" - , "dep": {"type": "var", "name": "runner"} - , "transition": {"type": "var", "name": "host-trans"} - } - } - , "body": - { "type": "singleton_map" - , "key": "runner" - , "value": {"type": "var", "name": "runner"} - } - } - } - } + , { "type": "let*" + , "bindings": + [ ["fieldname", "runner"] + , ["location", "runner"] + , ["transition", {"type": "var", "name": "host-trans"}] + ] + , "body": {"type": "CALL_EXPRESSION", "name": "stage"} } ] , ["test-args", {"type": "FIELD", "name": "args", "default": []}] -- cgit v1.2.3