summaryrefslogtreecommitdiff
path: root/test/script/publish.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-11-13 22:59:11 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2025-11-13 22:59:11 +0100
commitd6ff11543a3897dd2b38ed121f958ef0050e272c (patch)
treed37f1c58a214f9c3db84b229af7c832e5d5373a6 /test/script/publish.et
parente96ecb1ce8f81b3a256f6982c5da1aa7cbeb4e59 (diff)
Support publishing artifacts in the same job they're created
Diffstat (limited to 'test/script/publish.et')
-rw-r--r--test/script/publish.et25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/script/publish.et b/test/script/publish.et
index d5756cb..6cea2f2 100644
--- a/test/script/publish.et
+++ b/test/script/publish.et
@@ -42,3 +42,28 @@ test PublishFromDependency:
/.\/fifth\/with_dir\/dir2\/for\/artifact\/dir2\/subdir\/z/
/(.*)/ capture done
guard (done == "DONE")
+
+
+test PublishFromSelf:
+ node n
+ shell on n:
+ mkdir workdir
+ cp ${scripts.path}/from_self.yaml workdir/minici.yaml
+
+ spawn on n as p args [ "--destination=dest:destination", "workdir/minici.yaml", "run", "gen_publish" ]
+ expect_result from p:
+ of "gen_publish" result "done"
+ local:
+ expect /(.*)/ from p capture done
+ guard (done == "run-finish")
+
+ shell on n as listing:
+ find . -path ./workdir/.minici -prune -o -type f -print
+ echo DONE
+
+ expect from listing:
+ /.\/workdir\/minici.yaml/
+ /.\/destination\/x/
+ /.\/destination\/y/
+ /(.*)/ capture done
+ guard (done == "DONE")