diff options
author | David Sterba <dsterba@suse.com> | 2017-08-29 18:41:30 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-08 16:15:05 +0200 |
commit | c9141313ecdf06fb2eec107330dfeaa28e8edf6f (patch) | |
tree | 76b97ef33abaa132f145f34d4880a78373a6ce51 /tests | |
parent | 73de02b1c527ea157ded647b596929cdeed326ba (diff) |
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>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/convert-tests.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 57fd9252..8e97b225 100755 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -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 |