diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-17 15:02:26 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-04-17 15:02:26 +0200 |
commit | c76b6c45bb413e87b2cc0fbcc25f25e86f5b507f (patch) | |
tree | f27365bae725c70bcbae0927043ff0bc9622aa56 /CC | |
parent | 4602afc0e5833991dff792c7324f994c0bc136d0 (diff) | |
download | rules-cc-c76b6c45bb413e87b2cc0fbcc25f25e86f5b507f.tar.gz |
["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.
Diffstat (limited to 'CC')
-rw-r--r-- | CC/test/RULES | 33 |
1 files 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": []}] |