test: print output log when test fail
parent
dfe395e8fa
commit
d6ef8fbe23
|
@ -19,9 +19,9 @@ $(repos):
|
||||||
@echo "Building $@"
|
@echo "Building $@"
|
||||||
@rm -f repos.out
|
@rm -f repos.out
|
||||||
@cd $@ &&\
|
@cd $@ &&\
|
||||||
for i in */APKBUILD; do\
|
for i in */APKBUILD; do \
|
||||||
( cd $${i%/*} && \
|
( cd $${i%/*} && REPODEST="$$PWD/../.." abuild -R ) \
|
||||||
REPODEST="$$PWD/../.." abuild -R ) >> ../repos.out 2>&1 || exit 1;\
|
>> ../repos.out 2>&1 || { cat ../repos.out >&2; exit 1; } \
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,6 +41,9 @@ repos.stamp: $(repos)
|
||||||
mkdir -p "$(testroot)"; \
|
mkdir -p "$(testroot)"; \
|
||||||
if ! APK="$(APK)" ROOT="$(testroot)" SYSREPO="$(SYSREPO)" ./$< > $(basename $@).out 2>&1; then\
|
if ! APK="$(APK)" ROOT="$(testroot)" SYSREPO="$(SYSREPO)" ./$< > $(basename $@).out 2>&1; then\
|
||||||
echo " FAIL";\
|
echo " FAIL";\
|
||||||
|
printf "------------- output -------------\n" >&2;\
|
||||||
|
cat $(basename $@).out >&2;\
|
||||||
|
printf "----------------------------------\n" >&2;\
|
||||||
exit 1;\
|
exit 1;\
|
||||||
fi ;\
|
fi ;\
|
||||||
echo " OK" ;\
|
echo " OK" ;\
|
||||||
|
|
Loading…
Reference in New Issue