[functional-tests] return 1 as an exit code if there are failures.
This commit is contained in:
parent
8603a802ed
commit
9b632b769d
@ -222,6 +222,7 @@
|
|||||||
(thunk)
|
(thunk)
|
||||||
#t)))))
|
#t)))))
|
||||||
|
|
||||||
|
;; Returns #t if all tests pass.
|
||||||
(define (run-scenarios ss)
|
(define (run-scenarios ss)
|
||||||
(let ((pass 0)
|
(let ((pass 0)
|
||||||
(fail 0)
|
(fail 0)
|
||||||
@ -250,7 +251,8 @@
|
|||||||
(cat (dsp ", ")
|
(cat (dsp ", ")
|
||||||
(num fail)
|
(num fail)
|
||||||
(dsp " failures.")))
|
(dsp " failures.")))
|
||||||
nl))))
|
nl))
|
||||||
|
(zero? fail)))
|
||||||
|
|
||||||
;;-----------------------------------------------
|
;;-----------------------------------------------
|
||||||
|
|
||||||
|
@ -5,5 +5,8 @@
|
|||||||
|
|
||||||
(register-thin-tests)
|
(register-thin-tests)
|
||||||
(register-cache-tests)
|
(register-cache-tests)
|
||||||
(run-scenarios (list-scenarios))
|
|
||||||
|
(if (run-scenarios (list-scenarios))
|
||||||
|
(exit)
|
||||||
|
(exit #f))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user