From 15cbcc55eb93c31b09d7d39982e4eebb068d8654 Mon Sep 17 00:00:00 2001 From: Alessandro Boch Date: Tue, 19 May 2015 10:19:50 -0700 Subject: [PATCH] Fix Makefile - To report the godep test err code to CircleCI Signed-off-by: Alessandro Boch --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bf15342..892d827 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,8 @@ run-tests: pushd . &> /dev/null ; \ cd $$dir ; \ $(shell which godep) go test ${INSIDECONTAINER} -test.parallel 3 -test.v -covermode=count -coverprofile=./profile.tmp ; \ - if [ $$? -ne 0 ]; then exit $$?; fi ;\ + ret=$$? ;\ + if [ $$ret -ne 0 ]; then exit $$ret; fi ;\ popd &> /dev/null; \ if [ -f $$dir/profile.tmp ]; then \ cat $$dir/profile.tmp | tail -n +2 >> coverage.coverprofile ; \