summaryrefslogtreecommitdiff
path: root/shell/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-05 16:27:27 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-11-06 14:37:16 +0100
commitee8a8d511fb5c8d0cbad8a5979759ce853e8d767 (patch)
treed9061a648fba7cffe3d6dd6b39f4543afd669d40 /shell/test
parent9e7f2b68357dc1fbd073244e5a242a8317c8207d (diff)
downloadrules-cc-ee8a8d511fb5c8d0cbad8a5979759ce853e8d767.tar.gz
Use quote and quasi-quote to simplify some expressions
Diffstat (limited to 'shell/test')
-rw-r--r--shell/test/RULES17
1 files changed, 7 insertions, 10 deletions
diff --git a/shell/test/RULES b/shell/test/RULES
index 98fdab0..3d49db2 100644
--- a/shell/test/RULES
+++ b/shell/test/RULES
@@ -310,19 +310,16 @@
}
]
, [ "artifacts"
- , { "type": "map_union"
+ , { "type": "`"
, "$1":
- [ { "type": "singleton_map"
- , "key": "pwd"
- , "value": {"type": "BLOB", "data": "/summary"}
- }
- , {"type": "var", "name": "summary"}
- , { "type": "singleton_map"
- , "key": "work"
- , "value":
+ { "pwd":
+ {"type": ",", "$1": {"type": "BLOB", "data": "/summary"}}
+ , "work":
+ { "type": ","
+ , "$1":
{"type": "TREE", "$1": {"type": "var", "name": "attempts"}}
}
- ]
+ }
}
]
, [ "runfiles"