diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-04 15:57:31 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-10 16:28:59 +0100 |
commit | 21af38d3aa8fb70172d1951d68823c11d61c5c05 (patch) | |
tree | 1132b1c40a15236d2b20c13ad23d3eed488a82ad /test/end-to-end/EXPRESSIONS | |
parent | 7f3bff62999f927546c6ef7ee6133a89a2bb9cd6 (diff) | |
download | justbuild-21af38d3aa8fb70172d1951d68823c11d61c5c05.tar.gz |
remote test rules: support keeping directories
Diffstat (limited to 'test/end-to-end/EXPRESSIONS')
-rw-r--r-- | test/end-to-end/EXPRESSIONS | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/end-to-end/EXPRESSIONS b/test/end-to-end/EXPRESSIONS index 12f0772d..3c8a06c3 100644 --- a/test/end-to-end/EXPRESSIONS +++ b/test/end-to-end/EXPRESSIONS @@ -8,6 +8,7 @@ , "data" , "extra_infra" , "keep" + , "keep-dirs" , "transition" , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" @@ -85,10 +86,22 @@ } ] , [ "out_dirs" - , { "type": "if" - , "cond": {"type": "var", "name": "TEST_STANDALONE_SERVE"} - , "then": ["serve"] - , "else": ["remote"] + , { "type": "++" + , "$1": + [ { "type": "if" + , "cond": {"type": "var", "name": "TEST_STANDALONE_SERVE"} + , "then": ["serve"] + , "else": ["remote"] + } + , { "type": "foreach" + , "var": "dir_path" + , "range": {"type": "var", "name": "keep-dirs"} + , "body": + { "type": "join" + , "$1": ["work/", {"type": "var", "name": "dir_path"}] + } + } + ] } ] , [ "inputs" @@ -197,6 +210,7 @@ , "data" , "extra_infra" , "keep" + , "keep-dirs" , "transition" , "TEST_COMPATIBLE_REMOTE" , "TEST_REMOTE_EXECUTION" |