test: for V=2 tail only the last MB of logs

master
Harald Hoyer 2018-08-16 11:47:21 +02:00
parent c128b969bb
commit f8cad00948
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ while (($# > 0)); do
else
echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
if [ "$V" == "2" ]; then
cat $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
tail -c 1048576 $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
else
echo "see $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log"