_require_dm_target tries to use $SCRATCH_DEV, so move it after we've
established that the configuration has a valid $SCRATCH_DEV.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
# real QA test starts here
_supported_fs xfs
-_require_dm_target error
_require_scratch
_require_scratch_xfs_crc
_require_scrub
+_require_dm_target error
filter_scrub_errors() {
_filter_scratch | sed \