From aae8464fb9c7d43499fbf00efefd87933fc8d8dd Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Thu, 18 Mar 2021 11:35:01 +0100 Subject: [PATCH] wip [skip ci] --- test-resources/bb.edn | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/test-resources/bb.edn b/test-resources/bb.edn index a8b1cbb5..584ba888 100644 --- a/test-resources/bb.edn +++ b/test-resources/bb.edn @@ -18,15 +18,24 @@ :__ :eval-plus 1 2 3 :__ :describe]} ;;;; - :failing-shell {:task/type :babashka - ;; we are executing a shell task, yet we are continueing despite the error code - :args [-e (-> (do (deref (babashka.process/process ["ls" "foobar"] {:inherit true})) - (deref (babashka.process/process ["echo" "done"] {:inherit true})) - nil))]} + :never-failing-shell + {:task/type :babashka + ;; we are executing a shell task, yet we are continueing despite the error code + :args [-e (-> (do (deref (babashka.process/process ["ls" "foobar"] {:inherit true})) + (deref (babashka.process/process ["echo" "done"] {:inherit true})) + nil))]} :print-hello {:task/type :babashka :args [-e (println :hello)]} + + :always-failing-shell + {:task/type :babashka + ;; we are executing a shell task, yet we are continueing despite the error code + :args [-e (babashka.process/check (babashka.process/process ["ls" "foobar"] {:inherit true}))]} + :composed-never-failing {:task/type :babashka + :args [:do :never-failing-shell + :__ :print-hello]} :composed-failing {:task/type :babashka - :args [:do :failing-shell + :args [:do :always-failing-shell :__ :print-hello]} ,} }