]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
test: for V=2 tail only the last MB of logs
authorHarald Hoyer <harald@redhat.com>
Thu, 16 Aug 2018 09:47:21 +0000 (11:47 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 16 Aug 2018 09:47:21 +0000 (11:47 +0200)
test/test-functions

index 0c9d88c8f169614081caaf61be651b0061e79b53..6d7f418b7d8c072e54f50ea8cd48878ef72cc523 100644 (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"