Skip to content

Commit 3064fd7

Browse files
committed
tests: Do not stop on first failed test
Signed-off-by: Alexey Gladkov <legion@kernel.org>
1 parent 6850fcf commit 3064fd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,17 @@ release: $(PROJECT)-$(VERSION).tar.sign
8383

8484
check:
8585
@cd tests; \
86+
rc=0; \
8687
for sh in $${CHECK_SHELL:-/bin/sh /bin/dash /bin/bash /bin/bash3 /bin/bash4 /bin/mksh /bin/lksh /bin/pdksh}; do \
8788
[ -x "$$sh" ] || continue; \
8889
export TEST_SHELL="$$sh"; \
8990
echo "Running tests with $$sh"; \
9091
if ! "$$sh" -efu ./runtests; then \
9192
echo "Tests failed with $$sh"; \
9293
echo; \
93-
exit 1; \
94+
rc=1; \
9495
fi; \
95-
done
96+
done; exit $$rc;
9697
@sed -n -e 's/^## \([^[:space:]]\+\)$$/\1/p' ${mddocs_TARGETS} |sort -uo "$(CURDIR)/.shell-funcs-documented"
9798
@sed -n -e 's/^\([A-Za-z][A-Za-z0-9_]\+\)().*/\1/p' ${bin_TARGETS} |sort -uo "$(CURDIR)/.shell-funcs"
9899
@comm -13 \

0 commit comments

Comments
 (0)