fstests: _fail test by default when _scratch_mount fails
[xfstests-dev.git] / tests / btrfs / 091
index e3c43c761b4c928f9fb2f101394e43fabda36415..ca1d64c3dc09af3a028830765b9cdf286612cde1 100755 (executable)
@@ -61,12 +61,12 @@ run_check _scratch_mkfs "--nodesize $NODESIZE"
 # result.
 # discard error output since we will check return value manually.
 # also disable all compression, or output will mismatch with golden output
-_scratch_mount "-o noinode_cache,compress=no,compress-force=no" 2> /dev/null
+_try_scratch_mount "-o noinode_cache,compress=no,compress-force=no" 2> /dev/null
 
 # Check for old kernel which doesn't support 'noinode_cache' mount option
 if [ $? -ne 0 ]; then
        support_noinode_cache="no"
-       run_check _scratch_mount
+       _scratch_mount
 fi
 
 _run_btrfs_util_prog subvolume create $SCRATCH_MNT/subv1