Fix Windows test
This commit is contained in:
parent
a8eea0dfd7
commit
3ec7ced8cd
1 changed files with 15 additions and 12 deletions
|
|
@ -78,6 +78,9 @@ true
|
|||
(edn/read-string (bb "
|
||||
(:out @(babashka.deps/clojure [\"-M\" \"-e\" \"(require 'medley.core) (medley.core/index-by :id [{:id 1} {:id 2}])\"] {:out :string :dir \"test-resources/clojure-dir-test\"}))")))))
|
||||
(testing "GITLIBS can set location of .gitlibs dir"
|
||||
;; TODO: workaround for failing test on Windows
|
||||
(when-not (and test-utils/windows?
|
||||
test-utils/native?)
|
||||
(let [tmp-dir (fs/create-temp-dir)
|
||||
libs-dir (fs/file tmp-dir ".gitlibs")
|
||||
libs-dir2 (fs/file tmp-dir ".gitlibs2")
|
||||
|
|
@ -89,4 +92,4 @@ true
|
|||
(bb (-> template (str/replace ":gitlibs" (pr-str (str libs-dir2)))
|
||||
(str/replace ":env-key" ":extra-env")))
|
||||
(is (fs/exists? libs-dir))
|
||||
(is (fs/exists? libs-dir2)))))
|
||||
(is (fs/exists? libs-dir2))))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue