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 $${i%.sh}.ok ;\
$(SUDO) $(MAKE) --no-print-directory $${i%.sh}.ok SYSREPO=$(SYSREPO); \
done
$(SUDO) $(MAKE) --no-print-directory $${i%.sh}.ok SYSREPO=$(SYSREPO) || failed=1; \
done; \
return $$failed
tests:
@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