diff options
author | David Sterba <dsterba@suse.com> | 2016-11-18 15:18:02 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-11-23 10:51:43 +0100 |
commit | 4884ae2f5e87e1cfbf7cc1d5624e0600b1fa46b3 (patch) | |
tree | 079104e1620feb45b498bac00f1218ec868252d2 /tests/convert-tests.sh | |
parent | 7cd40e125b42831f1cda999a5d206739853120fd (diff) |
btrfs-progs: tests: enhance TEST_LOG features
Add new keyword to dump the log file after any test fails. Can be useful
for remote analysis of test failures.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests/convert-tests.sh')
-rwxr-xr-x | tests/convert-tests.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/convert-tests.sh b/tests/convert-tests.sh index 5fa88a12..c5663367 100755 --- a/tests/convert-tests.sh +++ b/tests/convert-tests.sh @@ -37,6 +37,9 @@ run_one_test() { ./test.sh if [ $? -ne 0 ]; then _fail "test failed for case $testname" + if [[ $TEST_LOG =~ dump ]]; then + cat "$RESULTS" + fi fi else _fail "custom test script not found" |