From 102a3f2f441d3454bc4b84f845eab7d9a38d97f2 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 23 Apr 2015 15:30:42 +0200 Subject: [PATCH] make test_full: handle error return code from cram --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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'. -- 2.48.1