Don't shutdown agents in interactive mode.

This commit is contained in:
Phil Hagelberg 2011-06-14 14:14:16 -07:00
parent 69174dc347
commit 7ce3d4c074

View file

@ -38,7 +38,9 @@ each namespace and print an overall summary."
summary# (binding [clojure.test/*test-out* *out*]
(apply ~'clojure.test/run-tests '~namespaces))]
(spit ".lein-failures" (pr-str @failures#))
(when-not (= "1.5" (System/getProperty "java.specification.version"))
(when (and (not= "1.5" (System/getProperty
"java.specification.version"))
~*exit-after-tests*)
(shutdown-agents))
;; Stupid ant won't let us return anything, so write results to disk
(with-open [w# (-> (java.io.File. ~result-file)