From 21af38d3aa8fb70172d1951d68823c11d61c5c05 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 4 Mar 2025 15:57:31 +0100 Subject: remote test rules: support keeping directories --- test/end-to-end/EXPRESSIONS | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'test/end-to-end/EXPRESSIONS') 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" -- cgit v1.2.3