Also don't try to read the test results doc if it's empty.

This commit is contained in:
Phil Hagelberg 2010-06-02 15:26:38 -07:00
parent 8667bac839
commit ab70dbeeef

View file

@ -58,7 +58,7 @@ tests. If none are given, runs them all."
(with-version-guard
(form-for-testing-namespaces namespaces
(.getAbsolutePath result))))
(if (.exists result)
(if (and (.exists result) (pos? (.length result)))
(let [summary (read-string (slurp (.getAbsolutePath result)))
success? (zero? (+ (:error summary) (:fail summary)))]
(.delete result)