btrfs-progs: test/fsck/021: Cleanup custom check by overriding check_image
[platform/upstream/btrfs-progs.git] / tests / misc-tests.sh
index 40e1cba..0898801 100755 (executable)
@@ -24,6 +24,9 @@ check_prereq btrfs-corrupt-block
 check_prereq btrfs-image
 check_prereq btrfstune
 check_prereq btrfs
+check_prereq btrfs-zero-log
+check_prereq btrfs-find-root
+check_prereq btrfs-select-super
 check_kernel_support
 
 # The tests are driven by their custom script called 'test.sh'
@@ -37,6 +40,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