summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/test/EXPRESSIONS15
-rw-r--r--shell/test/RULES6
2 files changed, 19 insertions, 2 deletions
diff --git a/shell/test/EXPRESSIONS b/shell/test/EXPRESSIONS
index 444de92..d9b1fbc 100644
--- a/shell/test/EXPRESSIONS
+++ b/shell/test/EXPRESSIONS
@@ -7,6 +7,7 @@
, "keep"
, "runner"
, "deps-fieldname"
+ , "deps-transition"
]
, "imports":
{ "artifacts_list": ["./", "../..", "field_artifacts_list"]
@@ -53,7 +54,9 @@
, "$1":
{ "type": "let*"
, "bindings":
- [["fieldname", {"type": "var", "name": "deps-fieldname"}]]
+ [ ["fieldname", {"type": "var", "name": "deps-fieldname"}]
+ , ["transition", {"type": "var", "name": "deps-transition"}]
+ ]
, "body":
[ {"type": "CALL_EXPRESSION", "name": "runfiles_list"}
, {"type": "CALL_EXPRESSION", "name": "artifacts_list"}
@@ -153,7 +156,15 @@
}
}
, "test-result":
- { "vars": ["TEST_ENV", "name", "test.sh", "keep", "runner", "deps-fieldname"]
+ { "vars":
+ [ "TEST_ENV"
+ , "name"
+ , "test.sh"
+ , "keep"
+ , "runner"
+ , "deps-fieldname"
+ , "deps-transition"
+ ]
, "imports": {"action": "test-action"}
, "expression":
{ "type": "let*"
diff --git a/shell/test/RULES b/shell/test/RULES
index 990e8d9..92c0ccc 100644
--- a/shell/test/RULES
+++ b/shell/test/RULES
@@ -55,7 +55,10 @@
{ "test-result": "test-result"
, "action": "test-action"
, "stage": ["./", "../..", "stage_singleton_field"]
+ , "host transition": ["transitions", "for host"]
}
+ , "config_transitions":
+ {"deps": [{"type": "CALL_EXPRESSION", "name": "host transition"}]}
, "expression":
{ "type": "let*"
, "bindings":
@@ -78,6 +81,9 @@
, ["keep", {"type": "FIELD", "name": "keep"}]
, ["runner", {"type": "FIELD", "name": "runner"}]
, ["deps-fieldname", "deps"]
+ , [ "deps-transition"
+ , {"type": "CALL_EXPRESSION", "name": "host transition"}
+ ]
]
, "body":
{ "type": "if"