From 249abdb6ad7b5ab8ca5e65f0093296ed8024e94c Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Wed, 29 Apr 2020 11:04:23 +0200 Subject: [PATCH] Enable pipe test --- test/babashka/main_test.clj | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/babashka/main_test.clj b/test/babashka/main_test.clj index c4c6cc64..9604f23b 100644 --- a/test/babashka/main_test.clj +++ b/test/babashka/main_test.clj @@ -179,15 +179,17 @@ (is (true? (bb nil "(.exists (io/file \"README.md\"))"))) (is (true? (bb nil "(.canWrite (io/file \"README.md\"))")))) -#_(deftest pipe-test - (when test-utils/native? +(deftest pipe-test + (when (and test-utils/native? + (not main/windows?)) (let [out (:out (sh "bash" "-c" "./bb -o '(range)' | ./bb --stream '(* *input* *input*)' | head -n10")) out (str/split-lines out) out (map edn/read-string out)] (is (= (take 10 (map #(* % %) (range))) out)))) - (when test-utils/native? + (when (and test-utils/native? + (not main/windows?)) (let [out (:out (sh "bash" "-c" "./bb -O '(repeat \"dude\")' | ./bb --stream '(str *input* \"rino\")' | ./bb -I '(take 3 *input*)'"))