From bb83acce9622f6b053a04788d3be5e2d657d1a85 Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Wed, 18 Dec 2019 00:19:37 -0800 Subject: [PATCH] vere: fixes Makefile test-runner, exiting on failed test --- pkg/urbit/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/urbit/Makefile b/pkg/urbit/Makefile index cd567871e4..850f56e8f2 100644 --- a/pkg/urbit/Makefile +++ b/pkg/urbit/Makefile @@ -33,7 +33,12 @@ CFLAGS := $(CFLAGS) all: $(all_exes) test: $(test_exes) - for x in $^; do echo "\n$$x" && ./$$x; done + @FAIL=0; \ + for x in $^; \ + do echo "\n$$x" && ./$$x; \ + if [ $$? != 0 ]; then FAIL=1; fi; \ + done; \ + if [ $$FAIL != 0 ]; then echo "\n" && exit 1; fi; clean: rm -f ./tags $(all_objs) $(all_exes)