Commit 69c343af authored by Jakub Jirutka's avatar Jakub Jirutka

test: exit with non-zero status when some root-test fail

parent d6ef8fbe
......@@ -52,10 +52,11 @@ repos.stamp: $(repos)
root-tests: repos.stamp
@echo "== Testing `$(APK) --version` (tests that require root permission) =="
@for i in test*.sh; do \
@failed=0; for i in test*.sh; do \
rm -f $${}.ok ;\
$(SUDO) $(MAKE) --no-print-directory $${}.ok SYSREPO=$(SYSREPO); \
$(SUDO) $(MAKE) --no-print-directory $${}.ok SYSREPO=$(SYSREPO) || failed=1; \
done; \
return $$failed
@echo "== Testing `$(APK) --version` =="
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment