Travis: Print out logs so that debugging travis is possible.
This commit is contained in:
parent
535e90343c
commit
3ea8cce948
|
@ -28,6 +28,8 @@ script:
|
||||||
- "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary"
|
- "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary"
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
|
## Print cooja test logs
|
||||||
|
- "tail regression-tests/??-$BUILD_TYPE/*.testlog"
|
||||||
## Print a basic summary
|
## Print a basic summary
|
||||||
- "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary"
|
- "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary"
|
||||||
- "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`"
|
- "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`"
|
||||||
|
|
|
@ -44,7 +44,7 @@ define dooneexample
|
||||||
$(3)-$(subst /,-,$(1))$(2).report 2>&1 && \
|
$(3)-$(subst /,-,$(1))$(2).report 2>&1 && \
|
||||||
(echo $(1) $(2): OK | tee $(3)-$(subst /,-,$(1))$(2).summary) || \
|
(echo $(1) $(2): OK | tee $(3)-$(subst /,-,$(1))$(2).summary) || \
|
||||||
(echo $(1) $(2): FAIL ಠ.ಠ | tee $(3)-$(subst /,-,$(1))$(2).summary ; \
|
(echo $(1) $(2): FAIL ಠ.ಠ | tee $(3)-$(subst /,-,$(1))$(2).summary ; \
|
||||||
tail -10 $(3)-$(subst /,-,$(1))$(2).report > $(3)-$(subst /,-,$(1))$(2).faillog))
|
tail -10 $(3)-$(subst /,-,$(1))$(2).report | tee $(3)-$(subst /,-,$(1))$(2).faillog))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define doexample
|
define doexample
|
||||||
|
|
|
@ -59,6 +59,7 @@ endif
|
||||||
@(java -jar $(CONTIKI)/tools/cooja/dist/cooja.jar \
|
@(java -jar $(CONTIKI)/tools/cooja/dist/cooja.jar \
|
||||||
-nogui=$< -contiki=$(CONTIKI) > $(basename $@).log || \
|
-nogui=$< -contiki=$(CONTIKI) > $(basename $@).log || \
|
||||||
(echo " FAIL ಠ_ಠ" | tee -a COOJA.testlog; \
|
(echo " FAIL ಠ_ಠ" | tee -a COOJA.testlog; \
|
||||||
|
tail -50 COOJA.log; \
|
||||||
mv COOJA.testlog $(basename $<).faillog; \
|
mv COOJA.testlog $(basename $<).faillog; \
|
||||||
$(RUNALL))) && \
|
$(RUNALL))) && \
|
||||||
(touch COOJA.testlog; \
|
(touch COOJA.testlog; \
|
||||||
|
|
Loading…
Reference in a new issue