summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/asset/run/norepo-basic.yaml11
-rw-r--r--test/script/run.et20
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: