In _require_xfs_stress_online_repair, make sure that the test has
sourced common/inject before we try to call its functions.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
_require_xfs_stress_online_repair() {
_require_xfs_stress_scrub
_require_xfs_io_command "repair"
+ command -v _require_xfs_io_error_injection &>/dev/null || \
+ _notrun 'xfs repair stress test requires common/inject'
_require_xfs_io_error_injection "force_repair"
_require_freeze
}