summaryrefslogtreecommitdiff
path: root/tests/mkfs-tests.sh
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-11-18 15:18:02 +0100
committerDavid Sterba <dsterba@suse.com>2016-11-23 10:51:43 +0100
commit4884ae2f5e87e1cfbf7cc1d5624e0600b1fa46b3 (patch)
tree079104e1620feb45b498bac00f1218ec868252d2 /tests/mkfs-tests.sh
parent7cd40e125b42831f1cda999a5d206739853120fd (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/mkfs-tests.sh')
-rwxr-xr-xtests/mkfs-tests.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/mkfs-tests.sh b/tests/mkfs-tests.sh
index c130520d..c8ff8c83 100755
--- a/tests/mkfs-tests.sh
+++ b/tests/mkfs-tests.sh
@@ -34,6 +34,9 @@ do
if [ -x test.sh ]; then
./test.sh
if [ $? -ne 0 ]; then
+ if [[ $TEST_LOG =~ dump ]]; then
+ cat "$RESULTS"
+ fi
_fail "test failed for case $(basename $i)"
fi
fi