diff --git a/.travis.yml b/.travis.yml index 4f89f07e9..06128afe0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,8 @@ script: - "make -C regression-tests/??-$BUILD_TYPE RUNALL=true summary" after_script: + ## Print cooja test logs + - "tail regression-tests/??-$BUILD_TYPE/*.testlog" ## Print a basic summary - "echo 'Summary:'; cat regression-tests/??-$BUILD_TYPE/summary" - "FAILS=`grep -c -i 'fail' regression-tests/??-$BUILD_TYPE/summary`" diff --git a/regression-tests/Makefile.compile-test b/regression-tests/Makefile.compile-test index 7b29787dd..1da37f804 100644 --- a/regression-tests/Makefile.compile-test +++ b/regression-tests/Makefile.compile-test @@ -44,7 +44,7 @@ define dooneexample $(3)-$(subst /,-,$(1))$(2).report 2>&1 && \ (echo $(1) $(2): OK | 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 define doexample diff --git a/regression-tests/Makefile.simulation-test b/regression-tests/Makefile.simulation-test index 90d778f2f..3b20e5376 100644 --- a/regression-tests/Makefile.simulation-test +++ b/regression-tests/Makefile.simulation-test @@ -59,6 +59,7 @@ endif @(java -jar $(CONTIKI)/tools/cooja/dist/cooja.jar \ -nogui=$< -contiki=$(CONTIKI) > $(basename $@).log || \ (echo " FAIL ಠ_ಠ" | tee -a COOJA.testlog; \ + tail -50 COOJA.log; \ mv COOJA.testlog $(basename $<).faillog; \ $(RUNALL))) && \ (touch COOJA.testlog; \