summaryrefslogtreecommitdiff
path: root/test/script
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-12-10 21:45:45 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-12-11 20:42:45 +0100
commit6beba62d56ab31927ef1ad7671ab52800ba51103 (patch)
tree90d4a8b9e3e91c1b838ae1717fca25c1aa1f8d12 /test/script
parent72c83a013caed4f3f850731988734d125df6a720 (diff)
Accept literal text block for the ‘shell’ section
Changelog: Accept literal text block for the `shell` section
Diffstat (limited to 'test/script')
-rw-r--r--test/script/run.et20
1 files changed, 14 insertions, 6 deletions
diff --git a/test/script/run.et b/test/script/run.et
index f00a4a7..3e13ca1 100644
--- a/test/script/run.et
+++ b/test/script/run.et
@@ -8,12 +8,20 @@ asset scripts:
test RunWithoutRepo:
node n
- spawn on n as p args [ "--storage=.minici", "${scripts.path}/norepo-basic.yaml", "run", "success", "failure" ]
- expect_result from p:
- of "success" result "done"
- of "failure" result "failed"
- expect /(.*)/ from p capture done
- guard (done == "run-finish")
+ local:
+ spawn on n as p args [ "--storage=.minici", "${scripts.path}/norepo-basic.yaml", "run", "success", "failure", "block_recipe" ]
+ expect_result from p:
+ of "success" result "done"
+ of "failure" result "failed"
+ of "block_recipe" result "done"
+ expect /(.*)/ from p capture done
+ guard (done == "run-finish")
+ local:
+ spawn on n as p args [ "--storage=.minici", "${scripts.path}/norepo-basic.yaml", "extract", "block_recipe.out", "." ]
+ local:
+ shell on n as s:
+ cat var
+ expect /abc/ from s
test RunWithRepo: