From: Daniel Hahler Date: Thu, 23 Apr 2015 13:30:42 +0000 (+0200) Subject: make test_full: handle error return code from cram X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=102a3f2f441d3454bc4b84f845eab7d9a38d97f2;p=zsh-autoenv.git make test_full: handle error return code from cram --- diff --git a/Makefile b/Makefile index 9859775..ed90a57 100644 --- a/Makefile +++ b/Makefile @@ -12,11 +12,13 @@ itest: # Run tests with all ZDOTDIRs. test_full: + ret=0; \ for i in $(wildcard tests/ZDOTDIR*); do \ echo "ZDOTDIR=$$i"; \ - ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests; \ + ZDOTDIR=${CURDIR}/$$i cram --shell=zsh -v tests || ret=$$?; \ echo; \ - done + done; \ + return $$ret # Define targets for test files, with relative and abolute path. # Use verbose output, which is useful with Vim's 'errorformat'.