Test cases with dm_target shall call _require_scratch* before
_require_dm_target to ensure that valid SCRATCH_DEV is available for
dm_target. However, the test cases generic/628 and generic/629 call
_require_dm_target before _require_scratch*, then unexpected failure
was reported when SCRATCH_DEV is not specified. Fix the order of
function calls.
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
# real QA test starts here
_supported_fs generic
-_require_dm_target error
_require_scratch_reflink
+_require_dm_target error
_require_xfs_io_command "chattr" "s"
_require_cp_reflink
# real QA test starts here
_supported_fs generic
+_require_scratch
_require_dm_target error
_require_xfs_io_command "chattr" "s"
_require_xfs_io_command "copy_range"
-_require_scratch
# Format filesystem and set up quota limits
_scratch_mkfs > $seqres.full