diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-08 16:33:58 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-08 16:47:04 +0200 |
commit | 5fdfa0f8b7c8c5df54d5ad6ce9e0cc89193cd1bd (patch) | |
tree | 5701a199b22bfc0ad58a7355246dd1167e39ba7e /CC/test/EXPRESSIONS | |
parent | 85597d2c8d0069c84f982bc16b81e1d612cbb07c (diff) | |
download | rules-cc-5fdfa0f8b7c8c5df54d5ad6ce9e0cc89193cd1bd.tar.gz |
["CC/test", "test"]: Honor shell-toolchain PATH for summary action
Diffstat (limited to 'CC/test/EXPRESSIONS')
-rw-r--r-- | CC/test/EXPRESSIONS | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/CC/test/EXPRESSIONS b/CC/test/EXPRESSIONS index a10fc2b..fe4918e 100644 --- a/CC/test/EXPRESSIONS +++ b/CC/test/EXPRESSIONS @@ -54,6 +54,7 @@ , "host transition": ["transitions", "for host"] , "target properties": ["transitions", "target properties"] , "stage": ["./", "../..", "stage_singleton_field"] + , "list_provider": ["./", "../..", "field_list_provider"] } , "expression": { "type": "let*" @@ -276,6 +277,17 @@ } } ] + , [ "summary PATH" + , { "type": "join" + , "separator": ":" + , "$1": + { "type": "let*" + , "bindings": + [["fieldname", "shell-defaults"], ["provider", "PATH"]] + , "body": {"type": "CALL_EXPRESSION", "name": "list_provider"} + } + } + ] , [ "summary" , { "type": "ACTION" , "inputs": @@ -293,6 +305,16 @@ , "name": "TEST_SUMMARY_EXECUTION_PROPERTIES" , "default": {"type": "empty_map"} } + , "env": + { "type": "if" + , "cond": {"type": "var", "name": "summary PATH"} + , "then": + { "type": "singleton_map" + , "key": "PATH" + , "value": {"type": "var", "name": "summary PATH"} + } + , "else": {"type": "empty_map"} + } } ] , [ "artifacts" |