[functional-tests] return 1 as an exit code if there are failures.

This commit is contained in:
Joe Thornber 2017-08-21 10:18:10 +01:00
parent 8603a802ed
commit 9b632b769d
2 changed files with 7 additions and 2 deletions

View File

@ -222,6 +222,7 @@
(thunk)
#t)))))
;; Returns #t if all tests pass.
(define (run-scenarios ss)
(let ((pass 0)
(fail 0)
@ -250,7 +251,8 @@
(cat (dsp ", ")
(num fail)
(dsp " failures.")))
nl))))
nl))
(zero? fail)))
;;-----------------------------------------------

View File

@ -5,5 +5,8 @@
(register-thin-tests)
(register-cache-tests)
(run-scenarios (list-scenarios))
(if (run-scenarios (list-scenarios))
(exit)
(exit #f))