btrfs-progs: tests: limit size of log dump from conver tests

The convert tests generate lots of log material, travis CI has limit 4MB
so we don't see anything useful when a late test fails.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-08-29 18:41:30 +02:00
parent 73de02b1c5
commit c9141313ec

View File

@ -41,7 +41,9 @@ run_one_test() {
./test.sh ./test.sh
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
if [[ $TEST_LOG =~ dump ]]; then if [[ $TEST_LOG =~ dump ]]; then
cat "$RESULTS" # the logs can be large and may exceed the
# limits, use 4MB for now
tail -c 3900000 "$RESULTS"
fi fi
_fail "test failed for case $testname" _fail "test failed for case $testname"
fi fi