From: Harald Hoyer Date: Thu, 16 Aug 2018 09:47:21 +0000 (+0200) Subject: test: for V=2 tail only the last MB of logs X-Git-Tag: 049~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f8cad00948c10107f84b9fcba812589a256f8f80;p=thirdparty%2Fdracut.git test: for V=2 tail only the last MB of logs --- diff --git a/test/test-functions b/test/test-functions index 0c9d88c8f..6d7f418b7 100644 --- a/test/test-functions +++ b/test/test-functions @@ -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"