fstests: _fail test by default when _scratch_mount fails
[xfstests-dev.git] / common / encrypt
index 189c59ee9bbdb05d122d7c7ef9ba09c05fb7a059..3d77ebd2cecca516fc7fe08679d6f37179ecafe3 100644 (file)
@@ -43,7 +43,7 @@ _require_scratch_encryption()
        # Try to mount the filesystem.  If this fails then either the kernel
        # isn't aware of encryption, or the mkfs options were not compatible
        # with encryption (e.g. ext4 with block size != PAGE_SIZE).
-       if ! _scratch_mount &>>$seqres.full; then
+       if ! _try_scratch_mount &>>$seqres.full; then
                _notrun "kernel is unaware of $FSTYP encryption feature," \
                        "or mkfs options are not compatible with encryption"
        fi