Skip to content

Commit

Permalink
Fix for testing from babashka project
Browse files Browse the repository at this point in the history
Can't tell you how I missed undoing a check against absolutized version
of an exe, but glad babashka CI didn't miss it!

Addendum for babashka#165
  • Loading branch information
lread committed Jul 26, 2024
1 parent 264e950 commit 3cdf7d7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/babashka/process_exec_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,7 @@
(deftest pre-start-fn-test
;; shows that pre-start-fn is active and that executable is resolved
(when-let [bb (u/find-bb)]
(is (= {:out (u/ols (format "Pre-start-fn output {:cmd [%s %s :out foobar]}\nfoobar\n"
(-> bb fs/which fs/absolutize fs/normalize)
u/wd))
(is (= {:out (u/ols (format "Pre-start-fn output {:cmd [%s %s :out foobar]}\nfoobar\n" (fs/which bb) u/wd))
:err ""
:exit 0 }
;; runner will always used a canned pre-start-fn, this should excercise the feature
Expand Down

0 comments on commit 3cdf7d7

Please sign in to comment.