summaryrefslogtreecommitdiff
path: root/shell/test/EXPRESSIONS
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-05 17:32:13 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-08-05 17:32:13 +0200
commitcca709ec12606c2e59169bcd9728665342895a1a (patch)
tree11ed0c475304d127a5d3e264d496c209d6e50620 /shell/test/EXPRESSIONS
parent0b8ebc6d074e5d9399839108a9210a66a992345b (diff)
parentd1a594af5bfb190fe625c400e700cc6096f7787b (diff)
downloadrules-cc-cca709ec12606c2e59169bcd9728665342895a1a.tar.gz
Merge commit 'd1a594af5bfb190fe625c400e700cc6096f7787b' into HEAD
Diffstat (limited to 'shell/test/EXPRESSIONS')
-rw-r--r--shell/test/EXPRESSIONS14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/test/EXPRESSIONS b/shell/test/EXPRESSIONS
index fee558a..b58bb49 100644
--- a/shell/test/EXPRESSIONS
+++ b/shell/test/EXPRESSIONS
@@ -6,6 +6,7 @@
, "name"
, "test.sh"
, "keep"
+ , "keep-dirs"
, "runner"
, "deps-fieldname"
, "deps-transition"
@@ -243,6 +244,16 @@
]
}
]
+ , [ "out_dirs"
+ , { "type": "foreach"
+ , "var": "dir_path"
+ , "range": {"type": "var", "name": "keep-dirs"}
+ , "body":
+ { "type": "join"
+ , "$1": ["work/", {"type": "var", "name": "dir_path"}]
+ }
+ }
+ ]
, [ "inputs"
, { "type": "map_union"
, "$1":
@@ -292,6 +303,7 @@
, "then":
{ "type": "ACTION"
, "outs": {"type": "var", "name": "outs"}
+ , "out_dirs": {"type": "var", "name": "out_dirs"}
, "inputs": {"type": "var", "name": "inputs"}
, "cmd": {"type": "var", "name": "cmd"}
, "env": {"type": "var", "name": "test_env"}
@@ -307,6 +319,7 @@
, "else":
{ "type": "ACTION"
, "outs": {"type": "var", "name": "outs"}
+ , "out_dirs": {"type": "var", "name": "out_dirs"}
, "inputs": {"type": "var", "name": "inputs"}
, "cmd": {"type": "var", "name": "cmd"}
, "env": {"type": "var", "name": "test_env"}
@@ -336,6 +349,7 @@
, "name"
, "test.sh"
, "keep"
+ , "keep-dirs"
, "runner"
, "deps-fieldname"
, "deps-transition"