Fix windows tests
This commit is contained in:
parent
0832b0a480
commit
02237c47ce
1 changed files with 12 additions and 8 deletions
|
|
@ -14,15 +14,19 @@
|
||||||
|
|
||||||
(set! *warn-on-reflection* true)
|
(set! *warn-on-reflection* true)
|
||||||
|
|
||||||
(defn string-replace-if-windows [match replacement]
|
(def normalize
|
||||||
(fn [s]
|
(if main/windows?
|
||||||
(if main/windows?
|
(fn [s] (if (string? s)
|
||||||
(str/replace s match replacement)
|
(str/replace s "\r\n" "\n")
|
||||||
s)))
|
s))
|
||||||
|
identity))
|
||||||
|
|
||||||
(def normalize (string-replace-if-windows "\r\n" "\n"))
|
(def escape-file-paths
|
||||||
|
(if main/windows?
|
||||||
(def escape-file-paths (string-replace-if-windows "\\" "\\\\"))
|
(fn [s] (if (string? s)
|
||||||
|
(str/replace s "\\" "\\\\")
|
||||||
|
s))
|
||||||
|
identity))
|
||||||
|
|
||||||
(def ^:dynamic *bb-edn-path* nil)
|
(def ^:dynamic *bb-edn-path* nil)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue