From a794fa07b74957bae51e79083c3f534fbefcf4ca 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 --- libnetwork/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnetwork/Makefile b/libnetwork/Makefile index bf15342ad5..892d827dbf 100644 --- a/libnetwork/Makefile +++ b/libnetwork/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 ; \