Also don't try to read the test results doc if it's empty.
This commit is contained in:
parent
8667bac839
commit
ab70dbeeef
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue