btrfs-progs: tests: limit size of log dump from conver tests
authorDavid Sterba <dsterba@suse.com>
Tue, 29 Aug 2017 16:41:30 +0000 (18:41 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
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>
tests/convert-tests.sh

index 57fd925..8e97b22 100755 (executable)
@@ -41,7 +41,9 @@ run_one_test() {
                ./test.sh
                if [ $? -ne 0 ]; 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
                        _fail "test failed for case $testname"
                fi