From 6beba62d56ab31927ef1ad7671ab52800ba51103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 10 Dec 2025 21:45:45 +0100 Subject: =?UTF-8?q?Accept=20literal=20text=20block=20for=20the=20=E2=80=98?= =?UTF-8?q?shell=E2=80=99=20section?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changelog: Accept literal text block for the `shell` section --- test/asset/run/norepo-basic.yaml | 11 +++++++++++ test/script/run.et | 20 ++++++++++++++------ 2 files changed, 25 insertions(+), 6 deletions(-) (limited to 'test') 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: -- cgit v1.2.3