test: exit with non-zero status when some root-test fail
parent
d6ef8fbe23
commit
69c343afb9
|
@ -52,10 +52,11 @@ repos.stamp: $(repos)
|
||||||
|
|
||||||
root-tests: repos.stamp
|
root-tests: repos.stamp
|
||||||
@echo "== Testing `$(APK) --version` (tests that require root permission) =="
|
@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 ;\
|
rm -f $${i%.sh}.ok ;\
|
||||||
$(SUDO) $(MAKE) --no-print-directory $${i%.sh}.ok SYSREPO=$(SYSREPO); \
|
$(SUDO) $(MAKE) --no-print-directory $${i%.sh}.ok SYSREPO=$(SYSREPO) || failed=1; \
|
||||||
done
|
done; \
|
||||||
|
return $$failed
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
@echo "== Testing `$(APK) --version` =="
|
@echo "== Testing `$(APK) --version` =="
|
||||||
|
|
Loading…
Reference in New Issue