From b55b825a60a2cf2e67f634569a19193b47a5fd50 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Dec 2008 16:25:17 +0000 Subject: [PATCH] including test log in test report --- tools/cooja/contiki_tests/RUN_TEST | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tools/cooja/contiki_tests/RUN_TEST b/tools/cooja/contiki_tests/RUN_TEST index 6395c135e..0e6dd43f8 100644 --- a/tools/cooja/contiki_tests/RUN_TEST +++ b/tools/cooja/contiki_tests/RUN_TEST @@ -27,16 +27,19 @@ if [ $LOGFILE -eq 1 ]; then if [ $OK == 0 ]; then echo "FAIL" >> $LOG if [ -f "$TEST.info" ]; then - echo "--LOG INFO START ($TEST.info) --" >> $LOG + echo "-- TEST INFO ($TEST.info) --" >> $LOG cat $TEST.info >> $LOG - echo "--LOG INFO END --" >> $LOG else - echo "-- NO LOG INFO AVAILABLE ($TEST.info) --" >> $LOG + echo "-- NO TEST INFO AVAILABLE ($TEST.info) --" >> $LOG fi - echo "-- OUTPUT TAIL START ($TEST.cooja_log) --" >> $LOG + if [ -f "$TEST.log" ]; then + echo "-- TEST OUTPUT (tail $TEST.log) --" >> $LOG + tail -5 $TEST.log >> $LOG + else + echo "-- NO TEST OUTPUT AVAILABLE ($TEST.log) --" >> $LOG + fi + echo "-- COOJA OUTPUT (tail $TEST.cooja_log) --" >> $LOG tail -5 $TEST.cooja_log >> $LOG - echo "-- OUTPUT TAIL END --" >> $LOG - echo >> $LOG else echo "OK" >> $LOG fi