diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2025-12-10 21:45:45 +0100 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-12-11 20:42:45 +0100 |
| commit | 6beba62d56ab31927ef1ad7671ab52800ba51103 (patch) | |
| tree | 90d4a8b9e3e91c1b838ae1717fca25c1aa1f8d12 /test | |
| parent | 72c83a013caed4f3f850731988734d125df6a720 (diff) | |
Accept literal text block for the ‘shell’ section
Changelog: Accept literal text block for the `shell` section
Diffstat (limited to 'test')
| -rw-r--r-- | test/asset/run/norepo-basic.yaml | 11 | ||||
| -rw-r--r-- | test/script/run.et | 20 |
2 files changed, 25 insertions, 6 deletions
diff --git a/test/asset/run/norepo-basic.yaml b/test/asset/run/norepo-basic.yaml index 2000858..ecd3a97 100644 --- a/test/asset/run/norepo-basic.yaml +++ b/test/asset/run/norepo-basic.yaml @@ -7,3 +7,14 @@ job failure: checkout: null shell: - "false" + +job block_recipe: + checkout: null + shell: | + mkdir dir + cd dir + export VAR='abc' + echo $VAR > var + + artifact out: + path: dir/var 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: |